cocoa: fix crash

fixes #1323

Doesn't leak unless we switch video tracks on and off while in fullscreen.
This commit is contained in:
Stefano Pigozzi 2014-12-08 23:02:09 +01:00
parent f78488b1f0
commit f93e8bb490
1 changed files with 0 additions and 5 deletions

View File

@ -208,11 +208,6 @@ void vo_cocoa_uninit(struct vo *vo)
enable_power_management(vo);
cocoa_rm_fs_screen_profile_observer(vo);
// make sure we exit fullscreen before releasing stuff to make sure our
// events view retain count actually reaches 0
if (!s->embedded)
[(MpvEventsView *)s->view setFullScreen:NO];
[s->gl_ctx release];
[s->view removeFromSuperview];
[s->view release];