Mercurial > pidgin
diff plugins/spellchk.c @ 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 | 5f15d53b610a |
children | ca677053ac11 |
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); }