Revision: 18536
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18536&view=rev
Author:   hofman
Date:     2012-03-05 10:57:57 +0000 (Mon, 05 Mar 2012)
Log Message:
-----------
use macro

Modified Paths:
--------------
    trunk/bibdesk/BDSKURLGroup.m

Modified: trunk/bibdesk/BDSKURLGroup.m
===================================================================
--- trunk/bibdesk/BDSKURLGroup.m        2012-03-05 10:26:52 UTC (rev 18535)
+++ trunk/bibdesk/BDSKURLGroup.m        2012-03-05 10:57:57 UTC (rev 18536)
@@ -185,10 +185,7 @@
     
     NSError *error = nil;
     
-    if (URLDownload) {
-        [URLDownload release];
-        URLDownload = nil;
-    }
+    BDSKDESTROY(URLDownload);
 
     // tried using -[NSString stringWithContentsOfFile:usedEncoding:error:] 
but it fails too often
     NSString *contentString = [NSString stringWithContentsOfFile:filePath 
guessedEncoding:0];
@@ -222,10 +219,7 @@
     failedDownload = YES;
     [self setErrorMessage:[error localizedDescription]];
     
-    if (URLDownload) {
-        [URLDownload release];
-        URLDownload = nil;
-    }
+    BDSKDESTROY(URLDownload);
     
     // redraw 
     [self setPublications:nil];

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to