Fix an overrelease of this SecTrustRef object, causing a crash when closing an untrusted certificate window. adium-1.5.5 adium-1.5.5_bookmark
authorThijs Alkemade <me@thijsalkema.de>
Fri, 01 Mar 2013 23:04:26 +0100
branchadium-1.5.5
changeset 5368 c71cfe104f07
parent 5367 9dbadb96453e
child 5369 f1c3dd536747
child 5494 bff364f5a528
Fix an overrelease of this SecTrustRef object, causing a crash when closing an untrusted certificate window.

Fixes #16280
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];