Revision: 28749
http://sourceforge.net/p/bibdesk/svn/28749
Author: hofman
Date: 2024-02-16 17:58:48 +0000 (Fri, 16 Feb 2024)
Log Message:
-----------
terminate texTask when delegate is unset and there are no promised types
remaining, dealloc may not be called on app terminate to terminate the texTask
Modified Paths:
--------------
trunk/bibdesk/BDSKItemPasteboardHelper.m
Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m 2024-02-16 17:53:53 UTC (rev
28748)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m 2024-02-16 17:58:48 UTC (rev
28749)
@@ -99,6 +99,10 @@
}];
}
delegate = newDelegate;
+ if (delegate == nil && promisedPboardTypes == nil && texTask) {
+ [texTask terminate];
+ texTask = nil;
+ }
}
}
@@ -317,6 +321,10 @@
}
[promisedPboardTypes removeObjectForKey:pbName];
if ([promisedPboardTypes count] == 0 && promisedPboardTypes != nil) {
+ if (delegate == nil && texTask) {
+ [texTask terminate];
+ texTask = nil;
+ }
promisedPboardTypes = nil;
// we used promisedPboardTypes != nil to signal we retained
ourselves
// see setPromisedTypes:items:dragCopyType:forPasteboard:
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