From: Mitchell Livingston Date: Tue, 19 Feb 2013 01:17:53 +0000 (+0000) Subject: retain/autorelease the dictionary when seeding completes, instead of creating a new... X-Git-Tag: 2.80~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1de3ddfbc98c56518c2c2bfa788532f91661d08b;p=transmission retain/autorelease the dictionary when seeding completes, instead of creating a new dictionary --- 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]];