pidgin: e6b1541f: Unregister the account signals after des...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Jul 5 15:10:34 EDT 2009


-----------------------------------------------------------------
Revision: e6b1541f9ee79737b751ff59336df16bb240899c
Ancestor: 7c6c496b797a6f1e2477ffffe661d90a61fa96cb
Author: darkrain42 at pidgin.im
Date: 2009-07-05T19:07:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e6b1541f9ee79737b751ff59336df16bb240899c

Modified files:
        libpurple/account.c

ChangeLog: 

Unregister the account signals after destroying accounts.

This avoids the following assertion failure:
** (process:32101): CRITICAL **: purple_signal_emit_vargs: assertion `instance_data != NULL' failed

-------------- next part --------------
============================================================
--- libpurple/account.c	cda51d35b970b12add51bebe14bd2fc7dbd8e03a
+++ libpurple/account.c	3a87a76485212d3128c933c2b35d815a494da7dc
@@ -2813,9 +2813,9 @@ purple_accounts_uninit(void)
 		sync_accounts();
 	}
 
-	purple_signals_disconnect_by_handle(handle);
-	purple_signals_unregister_by_instance(handle);
-
 	for (; accounts; accounts = g_list_delete_link(accounts, accounts))
 		purple_account_destroy(accounts->data);
+
+	purple_signals_disconnect_by_handle(handle);
+	purple_signals_unregister_by_instance(handle);
 }


More information about the Commits mailing list