0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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 2013-06-29 22:51:32 +02:00
parent a5b90bde0c
commit fd7dd83e28

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];