Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-19 01:33:07 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-19 01:33:07 (GMT)
commit9d27e7230863e75f2530e4942fd6a0c19107d30f (patch)
treed48fbfbd1a24110347969769300a0009ba18a20d /shell/ev-view.c
parent6c9c79f7cd5e86a5d90231f6b2f7ed2db9b7886f (diff)
Various small fixes, mostly memory leaks. Thanks to valgrind.
* lib/ev-file-helpers.c: (ev_file_helpers_shutdown): * shell/ev-sidebar-links.c: (create_loading_model): * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose): * shell/ev-view.c: (ev_view_set_document): * shell/ev-window.c: (ev_window_dispose): Various small fixes, mostly memory leaks. Thanks to valgrind.
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index c366b04..5cc6f57 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -1931,6 +1931,8 @@ ev_view_set_document (EvView *view,
g_return_if_fail (EV_IS_VIEW (view));
if (document != view->document) {
+ clear_caches (view);
+
if (view->document) {
g_signal_handlers_disconnect_by_func (view->document,
find_changed_cb,
@@ -1940,8 +1942,6 @@ ev_view_set_document (EvView *view,
}
- clear_caches (view);
-
view->document = document;
view->find_page = 0;
view->find_result = 0;