mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
Fix a leak in OakHistoryController
This commit is contained in:
committed by
Allan Odgaard
parent
460185724d
commit
158c931810
@@ -28,7 +28,7 @@
|
||||
NSMutableArray* history = [NSMutableArray array];
|
||||
for(NSDictionary* entry in historyArray)
|
||||
{
|
||||
NSMutableDictionary* dict = [entry mutableCopy];
|
||||
NSMutableDictionary* dict = [[entry mutableCopy] autorelease];
|
||||
[dict setObject:[[dict objectForKey:@"url"] absoluteString] forKey:@"url"];
|
||||
[history addObject:dict];
|
||||
}
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
if(value)
|
||||
{
|
||||
NSMutableDictionary* dict = [entry mutableCopy];
|
||||
NSMutableDictionary* dict = [[entry mutableCopy] autorelease];
|
||||
[dict removeObjectForKey:@"path"];
|
||||
[dict setObject:value forKey:@"url"];
|
||||
[historyArray addObject:dict];
|
||||
|
||||
Reference in New Issue
Block a user