Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.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-window.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-window.c')
-rw-r--r--shell/ev-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 10bdb9c..509ac25 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2409,6 +2409,11 @@ ev_window_dispose (GObject *object)
priv->toolbar_file = NULL;
}
+ if (priv->recent_model) {
+ g_object_unref (priv->recent_model);
+ priv->recent_model = NULL;
+ }
+
if (priv->ui_manager) {
g_object_unref (priv->ui_manager);
priv->ui_manager = NULL;