diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 38540a2040..2ca844184c 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -262,6 +262,7 @@ class CocoaCB: Common, EventSubscriber { uninit() uninitCommon() + window = nil layer?.lockCglContext() libmpv.uninit()