1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

cocoa: don’t hand over view memory ownership to libmpv clients

This commit is contained in:
Stefano Pigozzi 2014-11-25 14:44:27 +01:00
parent 7d6e58471f
commit 4590c198e6

View File

@ -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:]