1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

mplayer: fix race condition on uninit with Cocoa

NULL out Cocoa's reference to mplayer's input context before deallocating it
This commit is contained in:
Stefano Pigozzi 2013-09-01 23:00:52 +02:00
parent 3e1115569e
commit 71335183ec

View File

@ -565,6 +565,10 @@ static MP_NORETURN void exit_player(struct MPContext *mpctx,
timeEndPeriod(1);
#endif
#ifdef CONFIG_COCOA
cocoa_set_input_context(NULL);
#endif
mp_input_uninit(mpctx->input);
osd_free(mpctx->osd);