summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index d79e82911c..cc65aedd6d 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -179,6 +179,8 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask)
ao_uninit(ao);
}
mpctx->ao = NULL;
+ talloc_free(mpctx->ao_decoder_fmt);
+ mpctx->ao_decoder_fmt = NULL;
}
if (mask & INITIALIZED_PLAYBACK)