Revision: 28537
          http://sourceforge.net/p/bibdesk/svn/28537
Author:   hofman
Date:     2024-01-04 16:42:20 +0000 (Thu, 04 Jan 2024)
Log Message:
-----------
assign retained self to ivar

Modified Paths:
--------------
    trunk/bibdesk/BDSKTask.h
    trunk/bibdesk/BDSKTask.m

Modified: trunk/bibdesk/BDSKTask.h
===================================================================
--- trunk/bibdesk/BDSKTask.h    2024-01-04 16:38:01 UTC (rev 28536)
+++ trunk/bibdesk/BDSKTask.h    2024-01-04 16:42:20 UTC (rev 28537)
@@ -60,6 +60,7 @@
     id                       _standardInput;
     id                       _standardOutput;
     id                       _standardError;
+    id                       _strongSelf;
     pid_t                    _processIdentifier;    
     _Atomic(int)             _terminationStatus;
     NSTaskTerminationReason  _terminationReason;

Modified: trunk/bibdesk/BDSKTask.m
===================================================================
--- trunk/bibdesk/BDSKTask.m    2024-01-04 16:38:01 UTC (rev 28536)
+++ trunk/bibdesk/BDSKTask.m    2024-01-04 16:42:20 UTC (rev 28537)
@@ -209,7 +209,8 @@
     task->_internal = NULL;
     
     // balance additional retain in _taskExited
-    [task release];
+    [task->_strongSelf release];
+    task->_strongSelf = nil;
 }
 
 /*
@@ -670,7 +671,7 @@
      since the source may be handled before CFRunLoopWakeUp() is called, and 
it is 
      never handled in this thread.
      */
-    [self retain];
+    _strongSelf = [self retain];
     CFRunLoopSourceSignal(_internal->_rlsource);
     CFRunLoopWakeUp(_internal->_rl);
     pthread_mutex_unlock(&_internal->_lock);

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