Revision: 7798
http://skim-app.svn.sourceforge.net/skim-app/?rev=7798&view=rev
Author: hofman
Date: 2012-11-12 15:09:10 +0000 (Mon, 12 Nov 2012)
Log Message:
-----------
macro for releasing dispatch object
Modified Paths:
--------------
trunk/SKPDFSynchronizer.m
trunk/Skim_Prefix.pch
Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m 2012-11-07 12:24:49 UTC (rev 7797)
+++ trunk/SKPDFSynchronizer.m 2012-11-12 15:09:10 UTC (rev 7798)
@@ -91,10 +91,8 @@
}
- (void)dealloc {
- if (queue) dispatch_release(queue);
- queue = NULL;
- if (lockQueue) dispatch_release(lockQueue);
- lockQueue = NULL;
+ SKDISPATCHDESTROY(queue);
+ SKDISPATCHDESTROY(lockQueue);
SKDESTROY(fileManager);
SKDESTROY(pages);
SKDESTROY(lines);
Modified: trunk/Skim_Prefix.pch
===================================================================
--- trunk/Skim_Prefix.pch 2012-11-07 12:24:49 UTC (rev 7797)
+++ trunk/Skim_Prefix.pch 2012-11-12 15:09:10 UTC (rev 7798)
@@ -40,6 +40,7 @@
#define SKDESTROY(variable) do { [variable release]; variable = nil; }
while (0)
#define SKCFDESTROY(variable) do { if (variable) CFRelease(variable);
variable = NULL; } while (0)
#define SKZONEDESTROY(variable) do { if (variable)
NSZoneFree(NSZoneFromPointer((void*)variable), (void *)variable); variable =
NULL; } while (0)
+ #define SKDISPATCHDESTROY(variable) do { if (variable)
dispatch_release(variable); variable = nil; } while (0)
#else
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit