mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
retain/autorelease the dictionary when seeding completes, instead of creating a new dictionary
This commit is contained in:
+1
-3
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user