simplify Torrent's dealloc

This commit is contained in:
Mitchell Livingston 2007-07-01 15:18:03 +00:00
parent 432c26d353
commit 2e599065ff
2 changed files with 23 additions and 29 deletions

View File

@ -192,24 +192,16 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
- (void) dealloc
{
#warning cleanup
if (fHandle)
{
if (fDownloadFolder)
[fDownloadFolder release];
if (fIncompleteFolder)
[fIncompleteFolder release];
if (fPublicTorrentLocation)
[fPublicTorrentLocation release];
[fDateAdded release];
if (fDateCompleted)
[fDateCompleted release];
if (fDateActivity)
[fDateActivity release];
if (fAnnounceDate)
[fAnnounceDate release];
[fIcon release];
@ -225,8 +217,10 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
[fFlatFileList release];
[fBitmap release];
if (fPieces)
free(fPieces);
}
[super dealloc];
}