/soc/2013/ankitkv/gobjectification: 8afeafb200c1: Cancel pending...

Ankit Vani a at nevitus.org
Sun Aug 11 15:21:40 EDT 2013


Changeset: 8afeafb200c1a6ec761f9e01a1170ca66785e6f7
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-12 00:26 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/8afeafb200c1

Description:

Cancel pending dialogs and disconnect signals when removing a protocol

diffstat:

 libpurple/prpl.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff --git a/libpurple/prpl.c b/libpurple/prpl.c
--- a/libpurple/prpl.c
+++ b/libpurple/prpl.c
@@ -679,6 +679,11 @@ purple_protocol_destroy(PurplePluginProt
 				g_list_delete_link(prpl_info->protocol_options,
 				prpl_info->protocol_options);
 	}
+
+	purple_request_close_with_handle(prpl_info);
+	purple_notify_close_with_handle(prpl_info);
+
+	purple_signals_disconnect_by_handle(prpl_info);
 }
 
 PurplePluginProtocolInfo *



More information about the Commits mailing list