adium/adium

Parents a243fe8581d8
Children ed655a387ff7
Fix yet another bug with trustRef here: overreleased when an error occurred in SecTrustCreateWithCertificates().
--- a/Plugins/Purple Service/AIPurpleCertificateTrustWarningAlert.m Sun May 19 22:57:19 2013 +0200
+++ b/Plugins/Purple Service/AIPurpleCertificateTrustWarningAlert.m Tue May 21 23:53:01 2013 +0200
@@ -97,7 +97,7 @@
- (void)dealloc {
CFRelease(certificates);
- CFRelease(trustRef);
+ if (trustRef) CFRelease(trustRef);
[hostname release];
@@ -166,8 +166,6 @@
if(err != noErr) {
CFRelease(searchRef);
CFRelease(policyRef);
- if (trustRef)
- CFRelease(trustRef);
NSBeep();
[self release];
return;