adium 5023:54c9e016b5ba: Forgot a [pool release]; here.

commits at adium.im commits at adium.im
Wed Sep 5 21:10:36 UTC 2012


details:	http://hg.adium.im/adium/rev/54c9e016b5ba
revision:	5023:54c9e016b5ba
branch:		adium-1.5.4
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Sep 05 23:10:17 2012 +0200

Forgot a [pool release]; here.

diffs (15 lines):

diff -r 932796c0e3bf -r 54c9e016b5ba Plugins/Purple Service/AMPurpleJabberAdHocServer.m
--- a/Plugins/Purple Service/AMPurpleJabberAdHocServer.m	Wed Sep 05 22:57:49 2012 +0200
+++ b/Plugins/Purple Service/AMPurpleJabberAdHocServer.m	Wed Sep 05 23:10:17 2012 +0200
@@ -37,8 +37,10 @@
 			return;
 		}
 		const char *type = xmlnode_get_attrib(*packet,"type");
-		if(!type || strcmp(type,"set"))
+		if(!type || strcmp(type,"set")) {
+			[pool release];
 			return; // doesn't talk to us, probably the user interacting with some other adhoc node
+		}
 		const char *from = xmlnode_get_attrib(*packet,"from");
 		const char *iqid = xmlnode_get_attrib(*packet,"id");
 		xmlnode *command = xmlnode_get_child_with_namespace(*packet,"command","http://jabber.org/protocol/commands");




More information about the commits mailing list