Revision: 6617
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6617&view=rev
Author:   hofman
Date:     2010-07-15 11:23:39 +0000 (Thu, 15 Jul 2010)

Log Message:
-----------
use SKDESTROY macro for timers

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-07-13 10:16:10 UTC (rev 6616)
+++ trunk/SKMainWindowController.m      2010-07-15 11:23:39 UTC (rev 6617)
@@ -1632,8 +1632,7 @@
 
 - (void)removeTemporaryAnnotations {
     [temporaryAnnotationTimer invalidate];
-    [temporaryAnnotationTimer release];
-    temporaryAnnotationTimer = nil;
+    SKDESTROY(temporaryAnnotationTimer);
     // for long documents, this is much faster than iterating all pages and 
sending -isTemporaryAnnotation to each one
     CFSetApplyFunction((CFSetRef)temporaryAnnotations, 
removeTemporaryAnnotations, self);
     [temporaryAnnotations removeAllObjects];
@@ -2504,8 +2503,7 @@
         
         if (snapshotTimer) {
             [snapshotTimer invalidate];
-            [snapshotTimer release];
-            snapshotTimer = nil;
+            SKDESTROY(snapshotTimer);
         }
         
         if ([self countOfSnapshots])
@@ -2547,8 +2545,7 @@
     }
     if ([dirtySnapshots count] == 0) {
         [snapshotTimer invalidate];
-        [snapshotTimer release];
-        snapshotTimer = nil;
+        SKDESTROY(snapshotTimer);
     }
 }
 

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2010-07-13 10:16:10 UTC (rev 6616)
+++ trunk/SKMainWindowController_UI.m   2010-07-15 11:23:39 UTC (rev 6617)
@@ -228,13 +228,11 @@
         // timers retain their target, so invalidate them now or they may keep 
firing after the PDF is gone
         if (snapshotTimer) {
             [snapshotTimer invalidate];
-            [snapshotTimer release];
-            snapshotTimer = nil;
+            SKDESTROY(snapshotTimer);
         }
         if (temporaryAnnotationTimer) {
             [temporaryAnnotationTimer invalidate];
-            [temporaryAnnotationTimer release];
-            temporaryAnnotationTimer = nil;
+            SKDESTROY(temporaryAnnotationTimer);
         }
         if ([[pdfView document] isFinding])
             [[pdfView document] cancelFindString];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to