Changeset 2269


Ignore:
Timestamp:
Jul 1, 2007, 3:18:03 PM (15 years ago)
Author:
livings124
Message:

simplify Torrent's dealloc

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileBrowserCell.m

    r2189 r2269  
    7070   
    7171    BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: controlView]
    72                                     isEqual: [NSColor alternateSelectedControlColor]];
     72                                                isEqual: [NSColor alternateSelectedControlColor]];
    7373    NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
    7474                    highlighted ? [NSColor whiteColor] : [NSColor controlTextColor], NSForegroundColorAttributeName,
  • trunk/macosx/Torrent.m

    r2266 r2269  
    193193- (void) dealloc
    194194{
    195     #warning cleanup
    196     if (fHandle)
    197     {
    198         if (fDownloadFolder)
    199             [fDownloadFolder release];
    200         if (fIncompleteFolder)
    201             [fIncompleteFolder release];
    202        
    203         if (fPublicTorrentLocation)
    204             [fPublicTorrentLocation release];
    205        
    206         [fDateAdded release];
    207                 if (fDateCompleted)
    208                         [fDateCompleted release];
    209         if (fDateActivity)
    210                         [fDateActivity release];
    211        
    212         if (fAnnounceDate)
    213             [fAnnounceDate release];
    214        
    215         [fIcon release];
    216         [fIconFlipped release];
    217         [fIconSmall release];
    218        
    219         [fProgressString release];
    220         [fStatusString release];
    221         [fShortStatusString release];
    222         [fRemainingTimeString release];
    223        
    224         [fFileList release];
    225         [fFlatFileList release];
    226        
    227         [fBitmap release];
     195    [fDownloadFolder release];
     196    [fIncompleteFolder release];
     197       
     198    [fPublicTorrentLocation release];
     199   
     200   
     201    [fDateAdded release];
     202    [fDateCompleted release];
     203    [fDateActivity release];
     204       
     205    [fAnnounceDate release];
     206       
     207    [fIcon release];
     208    [fIconFlipped release];
     209    [fIconSmall release];
     210       
     211    [fProgressString release];
     212    [fStatusString release];
     213    [fShortStatusString release];
     214    [fRemainingTimeString release];
     215       
     216    [fFileList release];
     217    [fFlatFileList release];
     218       
     219    [fBitmap release];
     220   
     221    if (fPieces)
    228222        free(fPieces);
    229     }
     223   
    230224    [super dealloc];
    231225}
Note: See TracChangeset for help on using the changeset viewer.