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:
parent
3e1115569e
commit
71335183ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user