adium 4872:ecf20cb0356c: Forgot to also commit this file in b54f...

commits at adium.im commits at adium.im
Wed Jun 20 23:03:48 UTC 2012


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

Forgot to also commit this file in b54f715ec8a7.

Refs #15823, refs #15984

diffs (38 lines):

diff -r b54f715ec8a7 -r ecf20cb0356c Source/AILoggerPlugin.m
--- a/Source/AILoggerPlugin.m	Thu Jun 21 01:01:39 2012 +0200
+++ b/Source/AILoggerPlugin.m	Thu Jun 21 01:03:37 2012 +0200
@@ -401,7 +401,7 @@
 		if(reindex)
 			[bself _resetLogIndex];
 		
-		[bself logContentIndex];
+		[bself copyLogContentIndex];
 		if (!userTriggeredReindex) {
 			if (reindex)
 				[bself _dirtyAllLogs];
@@ -483,6 +483,7 @@
 			}
 			bself->logIndex = _index;
 		}
+		if (logIndex) CFRetain(logIndex);
     }));
 	return logIndex;
 }
@@ -531,6 +532,8 @@
 				CFRelease(document);
 			}
 		}
+		
+		CFRelease(logSearchIndex);
 	}));
 }
 
@@ -1440,8 +1443,6 @@
 		return;
 	}
 	
-	CFRetain(searchIndex);
-	
 	// logsIndexed = 0;
 	OSAtomicCompareAndSwap64Barrier(logsIndexed, 0, (int64_t*)&logsIndexed);
 	




More information about the commits mailing list