]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #4377 "Incomplete Folder removed when sub-folder of Default Location...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 12 Aug 2011 01:56:35 +0000 (01:56 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 12 Aug 2011 01:56:35 +0000 (01:56 +0000)
libtransmission/torrent.c

index 25bb0f0a3f8b714627c9be1b6dbfa6448fa0cc94..dd5170b95a9e225061754e5fb930fda9d23a0c5a 100644 (file)
@@ -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 );
         }