adium 5024:e3fd38fc6c95: Added another couple of pools for good ...

commits at adium.im commits at adium.im
Wed Sep 5 21:19:11 UTC 2012


details:	http://hg.adium.im/adium/rev/e3fd38fc6c95
revision:	5024:e3fd38fc6c95
branch:		adium-1.5.4
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Sep 05 23:19:02 2012 +0200

Added another couple of pools for good measure.

diffs (59 lines):

diff -r 54c9e016b5ba -r e3fd38fc6c95 Plugins/Purple Service/adiumPurpleCertificateTrustWarning.m
--- a/Plugins/Purple Service/adiumPurpleCertificateTrustWarning.m	Wed Sep 05 23:10:17 2012 +0200
+++ b/Plugins/Purple Service/adiumPurpleCertificateTrustWarning.m	Wed Sep 05 23:19:02 2012 +0200
@@ -22,6 +22,8 @@
 #import "ESPurpleJabberAccount.h"
 
 void adium_query_cert_chain(PurpleSslConnection *gsc, const char *hostname, CFArrayRef certs, void (*query_cert_cb)(gboolean trusted, void *userdata), void *userdata) {
+	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	
 	// only the jabber service supports this right now
 	for (ESPurpleJabberAccount *account in [adium.accountController accountsCompatibleWithService:[adium.accountController firstServiceWithServiceID:@"Jabber"]]) {
 		if([account secureConnection] == gsc) {
@@ -33,9 +35,12 @@
 																				 userData:userdata];
 			else
 				query_cert_cb(true, userdata);
+			[pool release];
 			return;
 		}
 	}
 	// default fallback
 	query_cert_cb(true, userdata);
+	
+	[pool release];
 }
diff -r 54c9e016b5ba -r e3fd38fc6c95 Plugins/Purple Service/adiumPurpleCore.m
--- a/Plugins/Purple Service/adiumPurpleCore.m	Wed Sep 05 23:10:17 2012 +0200
+++ b/Plugins/Purple Service/adiumPurpleCore.m	Wed Sep 05 23:19:02 2012 +0200
@@ -155,8 +155,12 @@
 
 static void adiumPurpleCoreDebugInit(void)
 {
+	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	
 	AILogWithSignature(@"");
 	configurePurpleDebugLogging();
+	
+	[pool release];
 }
 
 static void associateLibpurpleAccounts(void)
@@ -256,6 +260,8 @@
 
 static GHashTable *adiumPurpleCoreGetUiInfo(void)
 {
+	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	
 	static GHashTable *ui_info = NULL;
 	if (!ui_info) {
 		ui_info = g_hash_table_new(g_str_hash, g_str_equal);
@@ -282,6 +288,8 @@
 		 * points, we now use the key used by the offical AIR (Mac/Linux) client. */
 		g_hash_table_insert(ui_info, "prpl-icq-clientkey", "ic1-IIcaJnnNV5xA");
 	}
+	
+	[pool release];
 
 	return ui_info;
 }




More information about the commits mailing list