diff --git a/libtransmission/transmission.c b/libtransmission/transmission.c index 857a34060..512ee0acc 100644 --- a/libtransmission/transmission.c +++ b/libtransmission/transmission.c @@ -295,6 +295,11 @@ static void tr_closeImpl( void * vh ) { tr_handle * h = vh; + tr_torrent * t; + + for( t=h->torrentList; t!=NULL; t=t->next ) + tr_torrentClose( t ); + tr_peerMgrFree( h->peerMgr ); tr_rcClose( h->upload );