aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-09-10 14:52:21 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-09-10 14:52:21 +0800
commit26136b35b7ba15d85be19097a677cc48c76ac3d5 (patch)
tree03a307738b48f3d61fadafcf2c788a9cc3fdb972 /mail/folder-browser.c
parentb89fe0eff06b6266599dbd44110b4719ec964c89 (diff)
downloadgsoc2013-evolution-26136b35b7ba15d85be19097a677cc48c76ac3d5.tar.gz
gsoc2013-evolution-26136b35b7ba15d85be19097a677cc48c76ac3d5.tar.zst
gsoc2013-evolution-26136b35b7ba15d85be19097a677cc48c76ac3d5.zip
If we already have a folder, make sure we unref/unhook from it. Fixes a
2002-09-10 Not Zed <NotZed@Ximian.com> * folder-browser.c (got_folder): If we already have a folder, make sure we unref/unhook from it. Fixes a crash on exit. * message-list.c (message_list_hide_clear): clear thread tree cache if set. (message_list_set_search): Same. For bug #28834. svn path=/trunk/; revision=18029
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index ebc91cdda9..0d31cb479a 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -845,6 +845,12 @@ got_folder (char *uri, CamelFolder *folder, void *data)
if (fb->message_list == NULL)
goto done;
+
+ if (fb->folder) {
+ camel_object_unhook_event(fb->folder, "folder_changed", folder_changed, fb);
+ camel_object_unhook_event(fb->folder, "message_changed", folder_changed, fb);
+ camel_object_unref(fb->folder);
+ }
fb->folder = folder;
if (folder == NULL)