summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2020-01-19 17:31:47 +0100
committerder richter <der.richter@gmx.de>2020-01-26 12:12:22 +0100
commite2c59b4177c35ad4220e413d325202fc15b6033c (patch)
treee6fb7364485cc74eafc431ce3f82d6b61c1418f6
parent3275cd04b7531e3fb5528246eb04d40b8f2332e3 (diff)
downloadmpv-e2c59b4177c35ad4220e413d325202fc15b6033c.tar.bz2
mpv-e2c59b4177c35ad4220e413d325202fc15b6033c.tar.xz
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.
-rw-r--r--video/out/cocoa_cb_common.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift
index 54edbefcd3..64cd013fae 100644
--- a/video/out/cocoa_cb_common.swift
+++ b/video/out/cocoa_cb_common.swift
@@ -574,6 +574,7 @@ class CocoaCB: NSObject {
}
if isShuttingDown { return }
+ uninit()
setCursorVisiblility(true)
stopDisplaylink()
uninitLightSensor()