changeset 12571:2c73e08032a1

[gaim-migrate @ 14890] unregister the resendtimeout callback when being disconnected committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 19 Dec 2005 22:23:40 +0000
parents f6762269699a
children bf01b160ab0d
files src/protocols/simple/simple.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Mon Dec 19 21:46:40 2005 +0000
+++ b/src/protocols/simple/simple.c	Mon Dec 19 22:23:40 2005 +0000
@@ -1340,11 +1340,12 @@
 		g_free(sip->ip);
 		g_free(sip->realhostname);
 		if(sip->listenpa) gaim_input_remove(sip->listenpa);
+		if(sip->resendtimeout) gaim_timeout_remove(sip->resendtimeout);
 		if(sip->registertimeout) gaim_timeout_remove(sip->registertimeout);
 		sip->servername = sip->username = sip->password = sip->registrar.nonce = sip->registrar.realm = sip->proxy.nonce = sip->proxy.realm = sip->sendlater = sip->ip = sip->realhostname = NULL;
 	}
 	g_free(gc->proto_data);
-	gc->proto_data = 0;
+	gc->proto_data = NULL;
 }
 
 /* not needed since privacy is checked for every subscribe */