summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-11-25 14:44:27 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-11-25 14:45:13 +0100
commit4590c198e620aab6ba21681831f06a3000565ac9 (patch)
treeaa446f77eb783769703f43a8912cc20e70c238ef /video/out
parent7d6e58471f378215d4f104b85ca6190d7e98abcf (diff)
downloadmpv-4590c198e620aab6ba21681831f06a3000565ac9.tar.bz2
mpv-4590c198e620aab6ba21681831f06a3000565ac9.tar.xz
cocoa: don’t hand over view memory ownership to libmpv clients
Diffstat (limited to 'video/out')
-rw-r--r--video/out/cocoa_common.m2
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:]