mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Fix memory leaks
This commit is contained in:
+8
-1
@@ -78,7 +78,7 @@
|
||||
[script callWebScriptMethod:@"showFile" withArguments:[NSArray arrayWithObject:fileTxt]];
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if 0
|
||||
NSString *dom=[[[[view mainFrame] DOMDocument] documentElement] outerHTML];
|
||||
NSString *tmpFile=@"~/tmp/test.html";
|
||||
[dom writeToFile:[tmpFile stringByExpandingTildeInPath] atomically:true encoding:NSUTF8StringEncoding error:nil];
|
||||
@@ -151,6 +151,13 @@
|
||||
[self showFile];
|
||||
}
|
||||
|
||||
- (void)closeView
|
||||
{
|
||||
[historyController.treeController removeObserver:self forKeyPath:@"selection"];
|
||||
|
||||
[super closeView];
|
||||
}
|
||||
|
||||
- (NSString *) parseHTML:(NSString *)txt
|
||||
{
|
||||
txt=[txt stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
|
||||
|
||||
Reference in New Issue
Block a user