cocoa_common: uninit fs window properly

In fullscreen `s->window` is the windowed window. So freeing that didn't get
rid of the FS window and OpenGL view.

Fixes #122
[ci skip]
This commit is contained in:
Stefano Pigozzi committed 2013-06-29 22:55:15 +02:00
1 parent a5b90bde0c
commit fd7dd83e28
1 file changed
+3
+3
View File
@@ -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];