From 0a210575262431d9276b1a0d91b2c4102bca3fc0 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 18 Oct 2009 15:54:18 +0000 Subject: [PATCH] avoid an unnecessary copy when generating a single-file torrent's file list --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 52bf8a65a..902aef9fa 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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]; } }