summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 52bbc97733..f9d860d193 100644
--- a/player/main.c
+++ b/player/main.c
@@ -152,6 +152,9 @@ void mp_destroy(struct MPContext *mpctx)
mp_clients_destroy(mpctx);
+ talloc_free(mpctx->gl_cb_ctx);
+ mpctx->gl_cb_ctx = NULL;
+
osd_free(mpctx->osd);
if (cas_terminal_owner(mpctx, mpctx)) {