adium 4871:b54f715ec8a7: -logContentIndex now always returns a +...

commits at adium.im commits at adium.im
Wed Jun 20 23:01:51 UTC 2012


details:	http://hg.adium.im/adium/rev/b54f715ec8a7
revision:	4871:b54f715ec8a7
branch:		adium-1.5.2
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Thu Jun 21 01:01:39 2012 +0200

-logContentIndex now always returns a +1 retained copy, to avoid problems with other threads requesting it while it is being closed.

Fixes #15823, refs #15984

diffs (11 lines):

diff -r 82f8f5b935a4 -r b54f715ec8a7 Source/AILogViewerWindowController.m
--- a/Source/AILogViewerWindowController.m	Wed Jun 20 23:24:21 2012 +0200
+++ b/Source/AILogViewerWindowController.m	Thu Jun 21 01:01:39 2012 +0200
@@ -1712,6 +1712,7 @@
 	[currentSearchLock unlock];
 	
 	if (thisSearch) CFRelease(thisSearch);
+	if (logSearchIndex) CFRelease(logSearchIndex);
 }
 
 //Search the logs, filtering out any matching logs into the currentSearchResults




More information about the commits mailing list