]> granicus.if.org Git - transmission/commitdiff
experimental fix for #5106
authorMitchell Livingston <livings124@transmissionbt.com>
Tue, 30 Oct 2012 00:44:20 +0000 (00:44 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Tue, 30 Oct 2012 00:44:20 +0000 (00:44 +0000)
macosx/Controller.m

index 6197ee3abc3f46747777f541eb428449e72c5536..fe02b5f46d63f44da3dfc57f8750565eaf0ac4e1 100644 (file)
@@ -1502,9 +1502,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
                     [NSAnimationContext beginGrouping]; //this has to be before we set the completion handler (#4874)
                     
                     //we can't closeRemoveTorrent: until it's no longer in the GUI at all
+                    [torrents retain];
                     [[NSAnimationContext currentContext] setCompletionHandler: ^{
                         for (Torrent * torrent in torrents)
                             [torrent closeRemoveTorrent: deleteData];
+                        [torrents release];
                     }];
                     
                     [fTableView beginUpdates];