Revision: 22485
http://sourceforge.net/p/bibdesk/svn/22485
Author: hofman
Date: 2018-08-07 15:17:13 +0000 (Tue, 07 Aug 2018)
Log Message:
-----------
Make sure the index is retained until we're done with it
Modified Paths:
--------------
trunk/bibdesk/BDSKDocumentSearch.m
Modified: trunk/bibdesk/BDSKDocumentSearch.m
===================================================================
--- trunk/bibdesk/BDSKDocumentSearch.m 2018-08-07 15:06:33 UTC (rev 22484)
+++ trunk/bibdesk/BDSKDocumentSearch.m 2018-08-07 15:17:13 UTC (rev 22485)
@@ -209,9 +209,12 @@
if ([self isSearching])
[self cancelSearch];
+ CFRetain(skIndex);
+
// always queue a search, since the index content may be changing (in case
of a search group)
dispatch_async(queue, ^{
[self backgroundSearchForString:searchString index:skIndex];
+ CFRelease(skIndex);
});
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit