From 13d5c76437c87435aa368fab5d2588e831e18e93 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 30 Oct 2012 00:44:20 +0000 Subject: [PATCH] experimental fix for #5106 --- macosx/Controller.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macosx/Controller.m b/macosx/Controller.m index 6197ee3ab..fe02b5f46 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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];