JBR-6911 IDE crashes (EXC_BAD_ACCESS) after disconnecting the secondary display if a markdown file is opened (macOS Sonoma 14.4.1)

Corrected invalid usage of dealloc method, fixed memory leaks.

(cherry picked from commit 8697cfb660)
This commit is contained in:
Alexey Ushakov
2024-04-03 18:33:11 +02:00
committed by Nikita Gubarkov
parent 943566c281
commit e2af64ca4b

View File

@@ -255,8 +255,11 @@ union StateIndex {
}
- (void) dealloc {
[super dealloc];
[computeStates release];
self.library = nil;
self.shaders = nil;
self.states = nil;
[super dealloc];
}
@end