simplify Torrent's dealloc
This commit is contained in:
parent
432c26d353
commit
2e599065ff
|
@ -69,7 +69,7 @@
|
||||||
[paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
|
[paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
|
||||||
|
|
||||||
BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: controlView]
|
BOOL highlighted = [self isHighlighted] && [[self highlightColorWithFrame: cellFrame inView: controlView]
|
||||||
isEqual: [NSColor alternateSelectedControlColor]];
|
isEqual: [NSColor alternateSelectedControlColor]];
|
||||||
NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
NSDictionary * nameAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||||
highlighted ? [NSColor whiteColor] : [NSColor controlTextColor], NSForegroundColorAttributeName,
|
highlighted ? [NSColor whiteColor] : [NSColor controlTextColor], NSForegroundColorAttributeName,
|
||||||
[NSFont messageFontOfSize: 12.0], NSFontAttributeName,
|
[NSFont messageFontOfSize: 12.0], NSFontAttributeName,
|
||||||
|
|
|
@ -192,41 +192,35 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
#warning cleanup
|
[fDownloadFolder release];
|
||||||
if (fHandle)
|
[fIncompleteFolder release];
|
||||||
{
|
|
||||||
if (fDownloadFolder)
|
|
||||||
[fDownloadFolder release];
|
|
||||||
if (fIncompleteFolder)
|
|
||||||
[fIncompleteFolder release];
|
|
||||||
|
|
||||||
if (fPublicTorrentLocation)
|
[fPublicTorrentLocation release];
|
||||||
[fPublicTorrentLocation release];
|
|
||||||
|
|
||||||
[fDateAdded release];
|
|
||||||
if (fDateCompleted)
|
|
||||||
[fDateCompleted release];
|
|
||||||
if (fDateActivity)
|
|
||||||
[fDateActivity release];
|
|
||||||
|
|
||||||
if (fAnnounceDate)
|
[fDateAdded release];
|
||||||
[fAnnounceDate release];
|
[fDateCompleted release];
|
||||||
|
[fDateActivity release];
|
||||||
|
|
||||||
[fIcon release];
|
[fAnnounceDate release];
|
||||||
[fIconFlipped release];
|
|
||||||
[fIconSmall release];
|
|
||||||
|
|
||||||
[fProgressString release];
|
[fIcon release];
|
||||||
[fStatusString release];
|
[fIconFlipped release];
|
||||||
[fShortStatusString release];
|
[fIconSmall release];
|
||||||
[fRemainingTimeString release];
|
|
||||||
|
|
||||||
[fFileList release];
|
[fProgressString release];
|
||||||
[fFlatFileList release];
|
[fStatusString release];
|
||||||
|
[fShortStatusString release];
|
||||||
|
[fRemainingTimeString release];
|
||||||
|
|
||||||
[fBitmap release];
|
[fFileList release];
|
||||||
|
[fFlatFileList release];
|
||||||
|
|
||||||
|
[fBitmap release];
|
||||||
|
|
||||||
|
if (fPieces)
|
||||||
free(fPieces);
|
free(fPieces);
|
||||||
}
|
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue