mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
trunk: fix small memory leak when generating sounds menu
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user