Changeset 13255


Ignore:
Timestamp:
Mar 13, 2012, 3:49:30 AM (10 years ago)
Author:
livings124
Message:

more cleanup

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r13251 r13255  
    4848- (void) dealloc
    4949{
    50     [[NSNotificationCenter defaultCenter] removeObserver: self];
    51    
    5250    [fHashes release];
    53    
    5451    [super dealloc];
    5552}
  • trunk/macosx/Controller.m

    r13254 r13255  
    13981398    NSArray * torrents = [dict objectForKey: @"Torrents"];
    13991399    if (returnCode == NSAlertDefaultReturn)
    1400         [self confirmRemoveTorrents: torrents deleteData: [[dict objectForKey: @"DeleteData"] boolValue]];
    1401     else
    1402         [torrents release];
    1403    
     1400        [self confirmRemoveTorrents: [torrents retain] deleteData: [[dict objectForKey: @"DeleteData"] boolValue]];
     1401   
     1402    [torrents release];
    14041403    [dict release];
    14051404}
     
    27462745        fAutoImportTimer = nil;
    27472746    }
    2748    
    2749     if (fAutoImportedNames)
    2750     {
    2751         [fAutoImportedNames release];
    2752         fAutoImportedNames = nil;
    2753     }
     2747    [fAutoImportedNames release];
     2748    fAutoImportedNames = nil;
    27542749   
    27552750    [self checkAutoImportDirectory];
  • trunk/macosx/TorrentTableView.m

    r13251 r13255  
    837837- (void) togglePiecesBar
    838838{
    839     //stop previous animation
    840     if (fPiecesBarAnimation)
    841         [fPiecesBarAnimation release];
    842    
    843839    NSMutableArray * progressMarks = [NSMutableArray arrayWithCapacity: 16];
    844840    for (NSAnimationProgress i = 0.0625; i <= 1.0; i += 0.0625)
    845841        [progressMarks addObject: [NSNumber numberWithFloat: i]];
    846842   
     843    //this stops a previous animation
     844    [fPiecesBarAnimation release];
    847845    fPiecesBarAnimation = [[NSAnimation alloc] initWithDuration: TOGGLE_PROGRESS_SECONDS animationCurve: NSAnimationEaseIn];
    848846    [fPiecesBarAnimation setAnimationBlockingMode: NSAnimationNonblocking];
Note: See TracChangeset for help on using the changeset viewer.