* Fixes NB#78587, Modest no longer crashes when closing while s&r
authorSergio Villar Senin <svillar@igalia.com>
Thu, 13 Dec 2007 11:48:56 +0000 (11:48 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 13 Dec 2007 11:48:56 +0000 (11:48 +0000)
pmo-trunk-r3909

src/widgets/modest-header-view.c

index aeb0a9b..f838aca 100644 (file)
@@ -1177,6 +1177,7 @@ folder_refreshed_cb (ModestMailOperation *mail_op,
                       signals[UPDATING_MSG_LIST_SIGNAL], 0, FALSE, NULL);
 
        /* Frees */
+       g_object_unref (info->header_view);
        g_free (info);
 }
 
@@ -1230,7 +1231,7 @@ modest_header_view_set_folder (ModestHeaderView *self,
 
                /* create the helper */
                info = g_malloc0 (sizeof(SetFolderHelper));
-               info->header_view = self;
+               info->header_view = g_object_ref (self);
                info->cb = callback;
                info->user_data = user_data;