adium 5368:c71cfe104f07: Fix an overrelease of this SecTrustRef ...

commits at adium.im commits at adium.im
Fri Mar 1 22:04:35 UTC 2013


details:	http://hg.adium.im/adium/rev/c71cfe104f07
revision:	5368:c71cfe104f07
branch:		adium-1.5.5
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Fri Mar 01 23:04:26 2013 +0100

Fix an overrelease of this SecTrustRef object, causing a crash when closing an untrusted certificate window.

Fixes #16280

diffs (19 lines):

diff -r 9dbadb96453e -r c71cfe104f07 Plugins/Purple Service/AIPurpleCertificateTrustWarningAlert.m
--- a/Plugins/Purple Service/AIPurpleCertificateTrustWarningAlert.m	Mon Feb 25 22:06:24 2013 +0100
+++ b/Plugins/Purple Service/AIPurpleCertificateTrustWarningAlert.m	Fri Mar 01 23:04:26 2013 +0100
@@ -223,7 +223,6 @@
 
 	CFRelease(searchRef);
 	CFRelease(policyRef);
-	CFRelease(trustRef);
 }
 
 /*
@@ -311,6 +310,7 @@
 
 	[trustpanel release];
 	CFRelease(trustRef);
+	trustRef = NULL;
 
 	[parentWindow performClose:nil];
 	




More information about the commits mailing list