Fix memory leaks

This commit is contained in:
Nathan Kinsinger
2010-11-14 16:54:55 -07:00
parent cad928126e
commit 515b66f09a
5 changed files with 47 additions and 17 deletions
+8 -1
View File
@@ -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:@"&"];