Ignore:
Timestamp:
Aug 9, 2006, 3:25:41 AM (16 years ago)
Author:
livings124
Message:

remove unneeded retain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r749 r750  
    5353#define WINDOW_REGULAR_WIDTH    468.0
    5454
     55#define UPDATE_UI_SECONDS           1.0
     56#define AUTO_IMPORT_SECONDS         15.0
    5557#define AUTO_SPEED_LIMIT_SECONDS    10.0
    5658
     
    337339    fCompleted = 0;
    338340    [self updateUI: nil];
    339     fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
     341    fTimer = [NSTimer scheduledTimerWithTimeInterval: UPDATE_UI_SECONDS target: self
    340342        selector: @selector(updateUI:) userInfo: nil repeats: YES];
    341343    [[NSRunLoop currentRunLoop] addTimer: fTimer forMode: NSModalPanelRunLoopMode];
     
    354356   
    355357    //timer to check for auto import every 15 seconds, must do after everything else is set up
    356     fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: 15.0 target: self
     358    fAutoImportTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_IMPORT_SECONDS target: self
    357359        selector: @selector(checkAutoImportDirectory:) userInfo: nil repeats: YES];
    358360    [[NSRunLoop currentRunLoop] addTimer: fAutoImportTimer forMode: NSDefaultRunLoopMode];
     
    466468    if (ignore || [downloadChoice isEqualToString: @"Ask"])
    467469    {
    468         [self openFilesAsk: [[filenames mutableCopy] retain]];
     470        [self openFilesAsk: [filenames mutableCopy]];
    469471        return;
    470472    }
     
    555557    }
    556558   
    557     [torrent release];
    558    
    559559    [self performSelectorOnMainThread: @selector(openFilesAsk:) withObject: [dictionary objectForKey: @"Files"]
    560560                        waitUntilDone: NO];
    561561   
     562    [torrent release];
    562563    [dictionary release];
    563564}
Note: See TracChangeset for help on using the changeset viewer.