Changeset 11607


Ignore:
Timestamp:
Dec 30, 2010, 12:33:37 PM (11 years ago)
Author:
livings124
Message:

use autorelease pools when handling downloading/seeding state changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11556 r11607  
    19121912- (void) torrentFinishedDownloading: (NSNotification *) notification
    19131913{
     1914    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     1915   
    19141916    Torrent * torrent = [notification object];
    19151917   
     
    19521954   
    19531955    [self updateTorrentsInQueue];
     1956   
     1957    [pool drain];
    19541958}
    19551959
    19561960- (void) torrentRestartedDownloading: (NSNotification *) notification
    19571961{
     1962    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     1963   
    19581964    Torrent * torrent = [notification object];
    19591965    if ([torrent isActive] && [fDefaults boolForKey: @"Queue"] && [self numToStartFromQueue: YES] == 0)
     
    19641970   
    19651971    [self updateTorrentsInQueue];
     1972   
     1973    [pool drain];
    19661974}
    19671975
    19681976- (void) torrentFinishedSeeding: (NSNotification *) notification
    19691977{
     1978    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     1979   
    19701980    Torrent * torrent = [notification object];
    19711981   
     
    19982008                        description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
    19992009                        iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
     2010   
     2011    [pool drain];
    20002012}
    20012013
Note: See TracChangeset for help on using the changeset viewer.