From 35949e810e315c1f6e0d540cb773f14c5f9bee5d Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 23 Jul 2002 07:46:01 +0000 Subject: Disconnect from folderbroser signals when we unref it, so we dont get 2002-07-23 Not Zed * message-browser.c (message_browser_destroy): Disconnect from folderbroser signals when we unref it, so we dont get signals later on if someone else has a ref on it (causing crash). svn path=/trunk/; revision=17543 --- mail/ChangeLog | 6 ++++++ mail/message-browser.c | 1 + 2 files changed, 7 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 18b383cc3d..bd49c26a81 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-07-23 Not Zed + + * message-browser.c (message_browser_destroy): Disconnect from + folderbroser signals when we unref it, so we dont get signals + later on if someone else has a ref on it (causing crash). + 2002-07-22 Jeffrey Stedfast * mail-config.c (mail_config_signature_run_script): Check to make diff --git a/mail/message-browser.c b/mail/message-browser.c index 01e6fc1d1c..12dace6e88 100644 --- a/mail/message-browser.c +++ b/mail/message-browser.c @@ -67,6 +67,7 @@ message_browser_destroy (GtkObject *object) message_browser = MESSAGE_BROWSER (object); + gtk_signal_disconnect_by_data((GtkObject *)message_browser->fb, message_browser); gtk_object_unref (GTK_OBJECT (message_browser->fb)); if (GTK_OBJECT_CLASS (message_browser_parent_class)->destroy) -- cgit