From ecb2054493a3a418b523518fcb25fae30301d524 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 12 Aug 2011 01:56:35 +0000 Subject: [PATCH] (trunk libT) #4377 "Incomplete Folder removed when sub-folder of Default Location" -- another revision to r12665 --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 25bb0f0a3..dd5170b95 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2769,8 +2769,8 @@ deleteLocalData( tr_torrent * tor, tr_fileFunc func ) char * target_dir = tr_dirname( target ); tr_mkdirp( target_dir, 0777 ); rename( source, target ); + tr_ptrArrayAppend( &files, target ); tr_free( target_dir ); - tr_free( target ); tr_free( source ); tr_free( subpath ); } -- 2.40.0