mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
simplify Torrent's dealloc
This commit is contained in:
parent
432c26d353
commit
2e599065ff
2 changed files with 23 additions and 29 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue