changeset 10187:5a1fe52036ad

[gaim-migrate @ 11302] Disconnect the signed_on_off_cb function from the signed-on and signed-off signals when the buddy list is destroyed. This prevents a crash when signing off the last online account. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 15 Nov 2004 03:31:43 +0000
parents 61951f69ad2b
children 5709800d1dee
files src/gtkstatusselector.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusselector.c	Mon Nov 15 02:57:34 2004 +0000
+++ b/src/gtkstatusselector.c	Mon Nov 15 03:31:43 2004 +0000
@@ -204,6 +204,8 @@
 
 	selector = GAIM_GTK_STATUS_SELECTOR(obj);
 
+	gaim_signals_disconnect_by_handle(selector);
+
 	if (GTK_OBJECT_CLASS(parent_class)->destroy)
 		GTK_OBJECT_CLASS(parent_class)->destroy(obj);
 }