Revision: 24045
          http://sourceforge.net/p/bibdesk/svn/24045
Author:   hofman
Date:     2019-07-17 15:08:28 +0000 (Wed, 17 Jul 2019)
Log Message:
-----------
make sure the search object lives until it is finished

Modified Paths:
--------------
    trunk/bibdesk/BDSKSearchGroup.m

Modified: trunk/bibdesk/BDSKSearchGroup.m
===================================================================
--- trunk/bibdesk/BDSKSearchGroup.m     2019-07-17 15:06:15 UTC (rev 24044)
+++ trunk/bibdesk/BDSKSearchGroup.m     2019-07-17 15:08:28 UTC (rev 24045)
@@ -500,6 +500,8 @@
     
     importFinished = NO;
     
+    [self retain];
+    
     [server retrieveWithSearchTerm:searchTerm];
     
     NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
@@ -515,6 +517,8 @@
     
     importFinished = NO;
     
+    [self retain];
+    
     [server retrieveWithSearchTerm:searchTerm];
 }
 
@@ -532,6 +536,7 @@
         Block_release(completionHandler);
         completionHandler = NULL;
     }
+    [self release];
 }
 
 - (BDSKPublicationsArray *)publications { return nil; }

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

Reply via email to