]> www.fi.muni.cz Git - evince.git/commitdiff
Fix crash on exit, described in the bug #336825.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Sat, 1 Apr 2006 21:00:06 +0000 (21:00 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 1 Apr 2006 21:00:06 +0000 (21:00 +0000)
2006-04-02  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose):

Fix crash on exit, described in the bug #336825.

ChangeLog
shell/ev-sidebar-thumbnails.c

index 68b1554a21fc64351f00148b735172abcb8cb084..ba35ec2701297e5108f0a89d295977138c413936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-02  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_dispose):
+       
+       Fix crash on exit, described in the bug #336825.
+
 2006-03-31  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * backend/ev-document-factory.c:
index 6ed20a21753a020769684b7b6f654577ea50f6e0..ac449d8399607416f7f59b2e46aaf9c375c91e65 100644 (file)
@@ -102,13 +102,13 @@ ev_sidebar_thumbnails_dispose (GObject *object)
 {
        EvSidebarThumbnails *sidebar_thumbnails = EV_SIDEBAR_THUMBNAILS (object);
        
-       ev_sidebar_thumbnails_clear_model (sidebar_thumbnails);
        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) {
+               ev_sidebar_thumbnails_clear_model (sidebar_thumbnails);
                g_object_unref (sidebar_thumbnails->priv->list_store);
                sidebar_thumbnails->priv->list_store = NULL;
        }