From e2c59b4177c35ad4220e413d325202fc15b6033c Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 19 Jan 2020 17:31:47 +0100 Subject: 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. --- video/out/cocoa_cb_common.swift | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.2.3