mirror of https://github.com/mpv-player/mpv
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:
parent
3275cd04b7
commit
e2c59b4177
|
@ -574,6 +574,7 @@ class CocoaCB: NSObject {
|
|||
}
|
||||
if isShuttingDown { return }
|
||||
|
||||
uninit()
|
||||
setCursorVisiblility(true)
|
||||
stopDisplaylink()
|
||||
uninitLightSensor()
|
||||
|
|
Loading…
Reference in New Issue