- (void) torrentFinishedDownloading: (NSNotification *) notification
{
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+
Torrent * torrent = [notification object];
if ([[[notification userInfo] objectForKey: @"WasRunning"] boolValue])
}
[self updateTorrentsInQueue];
+
+ [pool drain];
}
- (void) torrentRestartedDownloading: (NSNotification *) notification
{
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+
Torrent * torrent = [notification object];
if ([torrent isActive] && [fDefaults boolForKey: @"Queue"] && [self numToStartFromQueue: YES] == 0)
{
}
[self updateTorrentsInQueue];
+
+ [pool drain];
}
- (void) torrentFinishedSeeding: (NSNotification *) notification
{
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+
Torrent * torrent = [notification object];
[self updateTorrentsInQueue];
[GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Seeding Complete", "Growl notification title")
description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
+
+ [pool drain];
}
- (void) updateTorrentHistory