summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/cocoa_common.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 93491dcf8d..84d8e29b86 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -180,6 +180,9 @@ void vo_cocoa_uninit(struct vo *vo)
enable_power_management(vo);
[NSApp setPresentationOptions:NSApplicationPresentationDefault];
+ if (vo->opts->fs)
+ [[s->view window] release];
+
[s->window release];
s->window = nil;
[s->glContext release];