From 9d27e7230863e75f2530e4942fd6a0c19107d30f Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 19 Jun 2005 01:33:07 +0000 Subject: 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. --- (limited to 'shell/ev-window.c') 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; -- cgit v0.9.1