Revision: 28603
http://sourceforge.net/p/bibdesk/svn/28603
Author: hofman
Date: 2024-01-14 15:56:59 +0000 (Sun, 14 Jan 2024)
Log Message:
-----------
retain index immediately
Modified Paths:
--------------
trunk/bibdesk/BDSKItemSearchIndexes.m
Modified: trunk/bibdesk/BDSKItemSearchIndexes.m
===================================================================
--- trunk/bibdesk/BDSKItemSearchIndexes.m 2024-01-14 15:50:15 UTC (rev
28602)
+++ trunk/bibdesk/BDSKItemSearchIndexes.m 2024-01-14 15:56:59 UTC (rev
28603)
@@ -191,12 +191,12 @@
- (SKIndexRef)copyIndexForField:(NSString *)field {
NSParameterAssert(nil != field);
- SKIndexRef anIndex = (SKIndexRef)CFDictionaryGetValue(searchIndexes,
(CFStringRef)field);
+ SKIndexRef anIndex =
(SKIndexRef)CFRetain(CFDictionaryGetValue(searchIndexes, (CFStringRef)field));
if (CFSetContainsValue(indexesToFlush, anIndex)) {
SKIndexFlush(anIndex);
CFSetRemoveValue(indexesToFlush, anIndex);
}
- return (SKIndexRef)CFRetain(anIndex);
+ return anIndex;
}
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit