/soc/2013/ankitkv/gobjectification: 016e4be6f3da: Unregister sig...

Ankit Vani a at nevitus.org
Sun Aug 11 17:24:22 EDT 2013


Changeset: 016e4be6f3da2ec0b874a2b4a5f2a334ed61be0d
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-12 02:53 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/016e4be6f3da

Description:

Unregister signals on plugin unload and protocol removal

diffstat:

 libpurple/plugins.c |  1 +
 libpurple/prpl.c    |  3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -156,6 +156,7 @@ purple_plugin_unload(PurplePlugin *plugi
 	purple_notify_close_with_handle(plugin);
 
 	purple_signals_disconnect_by_handle(plugin);
+	purple_signals_unregister_by_instance(plugin);
 
 	priv->unloaded = TRUE;
 
diff --git a/libpurple/prpl.c b/libpurple/prpl.c
--- a/libpurple/prpl.c
+++ b/libpurple/prpl.c
@@ -684,6 +684,9 @@ purple_protocol_destroy(PurplePluginProt
 	purple_notify_close_with_handle(prpl_info);
 
 	purple_signals_disconnect_by_handle(prpl_info);
+	purple_signals_unregister_by_instance(prpl_info);
+
+	purple_prefs_disconnect_by_handle(plugin);
 }
 
 PurplePluginProtocolInfo *



More information about the Commits mailing list