From 4590c198e620aab6ba21681831f06a3000565ac9 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 25 Nov 2014 14:44:27 +0100 Subject: =?UTF-8?q?cocoa:=20don=E2=80=99t=20hand=20over=20view=20memory=20?= =?UTF-8?q?ownership=20to=20libmpv=20clients?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video/out/cocoa_common.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:] -- cgit v1.2.3