summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpvcore/mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index 43a7b5d9b0..b1fb55dc87 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -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);