Skip to content
Snippets Groups Projects
Commit 87781b6c authored by George Nachman's avatar George Nachman
Browse files

Add a safetey check to ensure that the current temrinal is never a dangling pointer

parent d557dc0e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -752,6 +752,10 @@ NSString *sessionsKey = @"sessions";
[TABVIEW removeTabViewItem:aTabViewItem];
}
 
if ([[iTermController sharedInstance] currentTerminal] == self) {
NSLog(@"Red alert! Current terminal is being freed!");
[[iTermController sharedInstance] setCurrentTerminal:nil];
}
[broadcastViewIds_ release];
[commandField release];
[bottomBar release];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment