trunk: fix small memory leak when generating sounds menu

This commit is contained in:
Mitchell Livingston
2007-10-24 16:50:10 +00:00
parent 156ed97d04
commit 2b3751c2d8
2 changed files with 2 additions and 2 deletions

View File

@@ -307,7 +307,7 @@
- (NSArray *) sounds
{
NSMutableArray * sounds = [[NSMutableArray alloc] init];
NSMutableArray * sounds = [NSMutableArray array];
NSArray * directories = [NSArray arrayWithObjects: @"/System/Library/Sounds", @"/Library/Sounds",
[NSHomeDirectory() stringByAppendingPathComponent: @"Library/Sounds"], nil];