]> granicus.if.org Git - transmission/commitdiff
fix a trivial memory leak
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 8 Aug 2011 12:24:03 +0000 (12:24 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 8 Aug 2011 12:24:03 +0000 (12:24 +0000)
macosx/Controller.m

index 976bd52b9906746fc36aec79934e1ff97e6a022c..e730d3635c30a2fece8e246e226436caf2897eaf 100644 (file)
@@ -1424,7 +1424,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
             [fDefaults setBool: NO forKey: @"WarningRemoveCompleted"];
         
         if (returnCode != NSAlertFirstButtonReturn)
+        {
+            [torrents release];
             return;
+        }
     }
     
     [self confirmRemoveTorrents: torrents deleteData: NO];