mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 09:56:30 +00: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:
parent
a5b90bde0c
commit
fd7dd83e28
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user