mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) #2995 "Incompletely downloaded files not trashed" -- fixed in trunk for 1.92
This commit is contained in:
parent
14beb6f5a3
commit
3e9d545713
1 changed files with 2 additions and 2 deletions
|
@ -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; f<tor->info.fileCount; ++f ) {
|
||||
char * path = tr_buildPath( tor->currentDir, tor->info.files[f].name, NULL );
|
||||
for( i=0, n=tr_ptrArraySize( &torrentFiles ); i<n; ++i ) {
|
||||
char * path = tr_buildPath( tor->currentDir, tr_ptrArrayNth( &torrentFiles, i ), NULL );
|
||||
deleteLocalFile( path, fileFunc );
|
||||
tr_free( path );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue