adium 5021:324b6951b6c8: Forgot one callback here.

commits at adium.im commits at adium.im
Wed Sep 5 20:41:02 UTC 2012


details:	http://hg.adium.im/adium/rev/324b6951b6c8
revision:	5021:324b6951b6c8
branch:		adium-1.5.4
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Sep 05 22:40:54 2012 +0200

Forgot one callback here.

diffs (18 lines):

diff -r 8adf47ae7b50 -r 324b6951b6c8 Source/AdiumOTREncryption.m
--- a/Source/AdiumOTREncryption.m	Wed Sep 05 22:34:50 2012 +0200
+++ b/Source/AdiumOTREncryption.m	Wed Sep 05 22:40:54 2012 +0200
@@ -372,7 +372,13 @@
 
 static OtrlPolicy policy_cb(void *opdata, ConnContext *context)
 {
-	return policyForContact(contactForContext(context));	
+	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	
+	OtrlPolicy ret = policyForContact(contactForContext(context));
+	
+	[pool release];
+	
+	return ret;
 }
 
 /* Generate a private key for the given accountname/protocol */




More information about the commits mailing list