Revision: 28572
http://sourceforge.net/p/bibdesk/svn/28572
Author: hofman
Date: 2024-01-07 17:15:36 +0000 (Sun, 07 Jan 2024)
Log Message:
-----------
dispatch objects can be released as objc object
Modified Paths:
--------------
trunk/bibdesk/BDSKDocumentSearch.m
trunk/bibdesk/BDSKFileMatcher.m
trunk/bibdesk/BDSKFileSearchIndex.m
trunk/bibdesk/BDSKNotesSearchIndex.m
trunk/bibdesk/Bibdesk_Prefix.pch
Modified: trunk/bibdesk/BDSKDocumentSearch.m
===================================================================
--- trunk/bibdesk/BDSKDocumentSearch.m 2024-01-07 17:06:40 UTC (rev 28571)
+++ trunk/bibdesk/BDSKDocumentSearch.m 2024-01-07 17:15:36 UTC (rev 28572)
@@ -69,7 +69,7 @@
// owner should have already sent -terminate; sending it from -dealloc causes
resurrection
- (void)dealloc
{
- BDSKDISPATCHDESTROY(queue);
+ BDSKDESTROY(queue);
delegate = nil;
BDSKDESTROY(currentSearchString);
BDSKDESTROY(previouslySelectedPublications);
Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m 2024-01-07 17:06:40 UTC (rev 28571)
+++ trunk/bibdesk/BDSKFileMatcher.m 2024-01-07 17:15:36 UTC (rev 28572)
@@ -116,7 +116,7 @@
- (void)dealloc
{
- BDSKDISPATCHDESTROY(group);
+ BDSKDESTROY(group);
BDSKDESTROY(matches);
[super dealloc];
}
Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2024-01-07 17:06:40 UTC (rev 28571)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2024-01-07 17:15:36 UTC (rev 28572)
@@ -128,7 +128,7 @@
- (void)dealloc
{
- BDSKDISPATCHDESTROY(queue);
+ BDSKDESTROY(queue);
BDSKDESTROY(URLsForIdentifierURLs);
[rwLock lockForWriting];
BDSKDESTROY(identifierURLsForURLs);
Modified: trunk/bibdesk/BDSKNotesSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.m 2024-01-07 17:06:40 UTC (rev
28571)
+++ trunk/bibdesk/BDSKNotesSearchIndex.m 2024-01-07 17:15:36 UTC (rev
28572)
@@ -86,7 +86,7 @@
- (void)dealloc
{
delegate = nil;
- BDSKDISPATCHDESTROY(queue);
+ BDSKDESTROY(queue);
BDSKDESTROY(lock);
BDSKCFDESTROY(skIndex);
BDSKDESTROY(fileManager);
Modified: trunk/bibdesk/Bibdesk_Prefix.pch
===================================================================
--- trunk/bibdesk/Bibdesk_Prefix.pch 2024-01-07 17:06:40 UTC (rev 28571)
+++ trunk/bibdesk/Bibdesk_Prefix.pch 2024-01-07 17:15:36 UTC (rev 28572)
@@ -77,6 +77,5 @@
#define BDSKDESTROY(variable) do { [variable release]; variable = nil; }
while (0)
#define BDSKCFDESTROY(variable) do { if (variable) CFRelease(variable);
variable = NULL; } while (0)
#define BDSKFREEDESTROY(variable) do { if (variable) free((void
*)variable); variable = NULL; } while (0)
- #define BDSKDISPATCHDESTROY(variable) do { if (variable)
dispatch_release(variable); variable = NULL; } while (0)
#endif
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