1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

make decrementing the torrent count the last thing we do when destroying a torrent.

This commit is contained in:
Charles Kerr 2007-06-30 13:19:57 +00:00
parent 05ca8403c6
commit ec12220404

View file

@ -907,8 +907,6 @@ tr_torrentFree( tr_torrent_t * tor )
tr_sharedLock( h->shared );
h->torrentCount--;
tr_rwClose( &tor->lock );
tr_cpClose( tor->completion );
@ -931,6 +929,8 @@ tr_torrentFree( tr_torrent_t * tor )
tr_free( tor );
h->torrentCount--;
tr_sharedUnlock( h->shared );
}