From 1de3ddfbc98c56518c2c2bfa788532f91661d08b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 19 Feb 2013 01:17:53 +0000 Subject: [PATCH] retain/autorelease the dictionary when seeding completes, instead of creating a new dictionary --- macosx/Torrent.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index f82ddc1db..2d3527286 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1823,9 +1823,7 @@ int trashDataFile(const char * filename) { case TR_SEED: case TR_PARTIAL_SEED: - //simpler to create a new dictionary than to use statusInfo - avoids retention chicanery - [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self - userInfo: [NSDictionary dictionaryWithObject: [statusInfo objectForKey: @"WasRunning"] forKey: @"WasRunning"]]; + [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFinishedDownloading" object: self userInfo: [[statusInfo retain] autorelease]]; //quarantine the finished data NSString * dataLocation = [[self currentDirectory] stringByAppendingPathComponent: [self name]]; -- 2.40.0