cocoa-cb: fix race condition on quit

it was possible for mouse events to be triggered when the core was
already being shut down. to prevent this properly close and remove the
window and additional remove the reference to MPVHelper object.
This commit is contained in:
der richter 2020-01-19 17:31:47 +01:00
parent 3275cd04b7
commit e2c59b4177
1 changed files with 1 additions and 0 deletions

View File

@ -574,6 +574,7 @@ class CocoaCB: NSObject {
}
if isShuttingDown { return }
uninit()
setCursorVisiblility(true)
stopDisplaylink()
uninitLightSensor()