From 0fde2ddc8e37c4dccbbfe04c291dc30134ffbac1 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Mon, 26 Sep 2011 05:57:03 +0000 Subject: [PATCH] in freeTorrent(), don't destruct the torrent's completion field until after calling tr_announceRemoveTorrent() --- libtransmission/torrent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 4115fb4be..7cac7d0b5 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1512,10 +1512,10 @@ freeTorrent( tr_torrent * tor ) tr_peerMgrRemoveTorrent( tor ); - tr_cpDestruct( &tor->completion ); - tr_announcerRemoveTorrent( session->announcer, tor ); + tr_cpDestruct( &tor->completion ); + tr_free( tor->downloadDir ); tr_free( tor->incompleteDir );