From 3e9d54571321f27db421b734bac4fd97d719f3a4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 28 Feb 2010 15:27:48 +0000 Subject: [PATCH] (trunk libT) #2995 "Incompletely downloaded files not trashed" -- fixed in trunk for 1.92 --- libtransmission/torrent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index a66f89333..806af206f 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2344,8 +2344,8 @@ deleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc ) deleteLocalFile( s[i], fileFunc ); /* now blow away any remaining torrent files, such as torrent files in dirty folders */ - for( f=0; finfo.fileCount; ++f ) { - char * path = tr_buildPath( tor->currentDir, tor->info.files[f].name, NULL ); + for( i=0, n=tr_ptrArraySize( &torrentFiles ); icurrentDir, tr_ptrArrayNth( &torrentFiles, i ), NULL ); deleteLocalFile( path, fileFunc ); tr_free( path ); }