mirror of
https://github.com/mpv-player/mpv
synced 2025-04-27 05:39:21 +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);
|
enable_power_management(vo);
|
||||||
[NSApp setPresentationOptions:NSApplicationPresentationDefault];
|
[NSApp setPresentationOptions:NSApplicationPresentationDefault];
|
||||||
|
|
||||||
|
if (vo->opts->fs)
|
||||||
|
[[s->view window] release];
|
||||||
|
|
||||||
[s->window release];
|
[s->window release];
|
||||||
s->window = nil;
|
s->window = nil;
|
||||||
[s->glContext release];
|
[s->glContext release];
|
||||||
|
Loading…
Reference in New Issue
Block a user