mirror of
https://github.com/transmission/transmission
synced 2025-02-03 04:53:27 +00:00
fix crash-on-shutdown
This commit is contained in:
parent
72adcff7f4
commit
4834dc4b13
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue