adium 5276:9dd05779e49a: Fix two leaks in the new preference sea...

commits at adium.im commits at adium.im
Thu Jan 24 12:18:26 UTC 2013


details:	http://hg.adium.im/adium/rev/9dd05779e49a
revision:	5276:9dd05779e49a
branch:		adium-1.6
author:		Thijs Alkemade <me at thijsalkema.de>
date:		Thu Jan 24 13:17:14 2013 +0100

Fix two leaks in the new preference search.

diffs (16 lines):

diff -r 8aeed0554c8c -r 9dd05779e49a Source/AIPreferenceWindowController.m
--- a/Source/AIPreferenceWindowController.m	Thu Jan 24 12:51:12 2013 +0100
+++ b/Source/AIPreferenceWindowController.m	Thu Jan 24 13:17:14 2013 +0100
@@ -660,9 +660,12 @@
 			idx = [advancedPaneArray indexOfObject:pane];
 			if (idx != NSNotFound)
 				[advancedIndexes addIndex:idx];
+			CFRelease(foundURLs[i]);
 		}
 	}
 	
+	CFRelease(search);
+	
 	//Highlight matches in the collection views
 	generalCV.matchedSearchIndexes = generalIndexes;
 	appearanceCV.matchedSearchIndexes = appearanceIndexes;




More information about the commits mailing list