1
0
Fork 0
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:
Mitchell Livingston 2009-10-18 15:54:18 +00:00
parent f3c7dde651
commit 0a21057526

View file

@ -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];
}
}