Browse code

move deallocation code to presumably better place

Nat! authored on 30/07/2014 21:44:40
Showing 1 changed files
... ...
@@ -88,13 +88,24 @@
88 88
 }
89 89
 
90 90
 
91
-- (void) dealloc
91
+- (void) close
92 92
 {
93 93
    [[NSNotificationCenter defaultCenter] removeObserver:self];
94 94
    
95 95
    [webView setFrameLoadDelegate:nil];
96
+   webView = nil;
96 97
    [textView setDelegate:nil];
98
+   textView = nil;
97 99
    [plistTextView setDelegate:nil];
100
+   plistTextView = nil;
101
+
102
+   [super close];
103
+}
104
+
105
+
106
+- (void) dealloc
107
+{
108
+   NSParameterAssert( ! webView);
98 109
    
99 110
    [mulleScionDirPath_ release];
100 111
    [environment_ release];