mirror of
https://github.com/transmission/transmission
synced 2025-02-08 07:24:55 +00:00
avoid an unnecessary copy when generating a single-file torrent's file list
This commit is contained in:
parent
f3c7dde651
commit
0a21057526
1 changed files with 1 additions and 1 deletions
|
@ -1671,7 +1671,7 @@ int trashDataFile(const char * filename)
|
|||
{
|
||||
FileListNode * node = [[FileListNode alloc] initWithFileName: [self name] path: @"" size: [self size] index: 0];
|
||||
fFileList = [[NSArray arrayWithObject: node] retain];
|
||||
fFlatFileList = [fFileList copy];
|
||||
fFlatFileList = [fFileList retain];
|
||||
[node release];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue