From 16a5971d28ae3ac72a9e38b00d73162ec24d56a9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 22 Dec 2014 12:45:43 +0100 Subject: vo_opengl_cb: free context on exit Minor memory leak. Actually, this also exposes some problems in the QtQuick example. This will have to be fixed in the example. --- player/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player') 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)) { -- cgit v1.2.3