Revision: 24044
          http://sourceforge.net/p/bibdesk/svn/24044
Author:   hofman
Date:     2019-07-17 15:06:15 +0000 (Wed, 17 Jul 2019)
Log Message:
-----------
release completion handler

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

Modified: trunk/bibdesk/BDSKSearchGroup.m
===================================================================
--- trunk/bibdesk/BDSKSearchGroup.m     2019-07-17 14:18:22 UTC (rev 24043)
+++ trunk/bibdesk/BDSKSearchGroup.m     2019-07-17 15:06:15 UTC (rev 24044)
@@ -482,6 +482,9 @@
     self = [super init];
     if (self) {
         macroResolver = [aMacroResolver retain];
+        publications = nil;
+        server = nil;
+        completionHandler = NULL;
     }
     return self;
 }
@@ -524,8 +527,11 @@
     importFinished = YES;
     [server terminate];
     BDSKDESTROY(server);
-    if (completionHandler)
+    if (completionHandler) {
         completionHandler(publications);
+        Block_release(completionHandler);
+        completionHandler = NULL;
+    }
 }
 
 - (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