diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa_common.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index d34dc59964..4ac6433f84 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -194,6 +194,7 @@ void vo_cocoa_uninit(struct vo *vo) [s->gl_ctx release]; [s->view removeFromSuperview]; + [s->view release]; if (s->window) [s->window release]; }); } @@ -327,7 +328,6 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags) view.adapter = adapter; s->view = view; [parent addSubview:s->view]; - [s->view release]; // insert ourselves as the next key view so that clients can give key // focus to the mpv view by calling -[NSWindow selectNextKeyView:] |