diff options
author | Nickolay 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) |
commit | 9d27e7230863e75f2530e4942fd6a0c19107d30f (patch) | |
tree | d48fbfbd1a24110347969769300a0009ba18a20d /shell/ev-sidebar-thumbnails.c | |
parent | 6c9c79f7cd5e86a5d90231f6b2f7ed2db9b7886f (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-sidebar-thumbnails.c')
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 93f4150..c2c07c8 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -101,9 +101,16 @@ ev_sidebar_thumbnails_dispose (GObject *object) EvSidebarThumbnails *sidebar_thumbnails = EV_SIDEBAR_THUMBNAILS (object); ev_sidebar_thumbnails_clear_model (sidebar_thumbnails); - g_object_unref (sidebar_thumbnails->priv->loading_icon); - g_object_unref (sidebar_thumbnails->priv->list_store); - + if (sidebar_thumbnails->priv->loading_icon) { + g_object_unref (sidebar_thumbnails->priv->loading_icon); + sidebar_thumbnails->priv->loading_icon = NULL; + } + + if (sidebar_thumbnails->priv->list_store) { + g_object_unref (sidebar_thumbnails->priv->list_store); + sidebar_thumbnails->priv->list_store = NULL; + } + G_OBJECT_CLASS (ev_sidebar_thumbnails_parent_class)->dispose (object); } |