Skip to content

Commit

Permalink
fixed dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Nov 17, 2024
1 parent f0f1176 commit 592f054
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion virtualization_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,15 @@ - (void)dealloc
_mouseMovedMonitor = nil;
}
[self stopScrollTimer];
[_virtualMachine removeObserver:self forKeyPath:@"state"];
if (_virtualMachine) {
[_virtualMachine removeObserver:self forKeyPath:@"state"];
}
_virtualMachineView = nil;
_virtualMachine = nil;
_queue = nil;
_toolbar = nil;
_window = nil;
_pauseOverlayView = nil;
[super dealloc];
}

Expand Down

0 comments on commit 592f054

Please sign in to comment.