fix crash-on-shutdown

This commit is contained in:
Charles Kerr 2007-09-23 19:24:06 +00:00
parent 72adcff7f4
commit 4834dc4b13
1 changed files with 2 additions and 2 deletions

View File

@ -1004,6 +1004,8 @@ tr_torrentFree( tr_torrent * tor )
tr_sharedLock( h->shared );
tr_peerMgrRemoveTorrent( h->peerMgr, tor->info.hash );
tr_lockFree( tor->lock );
tr_cpClose( tor->completion );
@ -1032,8 +1034,6 @@ tr_torrentFree( tr_torrent * tor )
tr_inf( "closing torrent %s... %d torrents left",
tor->info.name, h->torrentCount );
tr_peerMgrRemoveTorrent( h->peerMgr, tor->info.hash );
tr_metainfoFree( inf );
tr_free( tor );