changeset 12858:b1c85bf2dab3

[gaim-migrate @ 15209] Disconnecting signal handlers when you unload a plugin is a good idea. Fixes SF Bug #1404571. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 13 Jan 2006 17:26:42 +0000
parents e5f780a6137b
children 02e1ef5bc3d5
files plugins/spellchk.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/spellchk.c	Fri Jan 13 02:47:12 2006 +0000
+++ b/plugins/spellchk.c	Fri Jan 13 17:26:42 2006 +0000
@@ -2075,6 +2075,9 @@
 	for (convs = gaim_get_conversations(); convs != NULL; convs = convs->next)
 	{
 		GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION((GaimConversation *)convs->data);
+		spellchk *spell = g_object_get_data(G_OBJECT(gtkconv->entry), SPELLCHK_OBJECT_KEY);
+
+		g_signal_handlers_disconnect_by_func(gtkconv->entry, message_send_cb, spell);
 		g_object_set_data(G_OBJECT(gtkconv->entry), SPELLCHK_OBJECT_KEY, NULL);
 	}