summaryrefslogtreecommitdiff
path: root/tikzit/src/osx/TikzSourceController.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/osx/TikzSourceController.m')
-rw-r--r--tikzit/src/osx/TikzSourceController.m9
1 files changed, 6 insertions, 3 deletions
diff --git a/tikzit/src/osx/TikzSourceController.m b/tikzit/src/osx/TikzSourceController.m
index 737d771..84eb3a5 100644
--- a/tikzit/src/osx/TikzSourceController.m
+++ b/tikzit/src/osx/TikzSourceController.m
@@ -142,8 +142,12 @@
}
- (BOOL)tryParseTikz {
+ NSError *thisError;
+
Graph *g = [TikzGraphAssembler parseTikz:[self tikz]
- error:&lastError];
+ error:&thisError];
+
+ lastError = thisError;
if (g) {
[graphicsView deselectAll:self];
@@ -230,9 +234,8 @@
}
}
-- (void)finalize {
+- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
- [super finalize];
}
@end