Mercurial > mplayer.hg
changeset 26923:cbd9c19ce4d8
Properly free memory allocate by liba52.
author | reimar |
---|---|
date | Sun, 01 Jun 2008 16:40:56 +0000 |
parents | cfad7bcf91cc |
children | ca50c4a72f68 |
files | libmpcodecs/ad_hwac3.c libmpcodecs/ad_liba52.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c Sun Jun 01 07:45:22 2008 +0000 +++ b/libmpcodecs/ad_hwac3.c Sun Jun 01 16:40:56 2008 +0000 @@ -128,14 +128,17 @@ } if(ac3dts_fillbuff(sh_audio) < 0) { + a52_free(a52_state); mp_msg(MSGT_DECAUDIO, MSGL_ERR, "AC3/DTS sync failed\n"); return 0; } + sh_audio->context = a52_state; return 1; } static void uninit(sh_audio_t *sh) { + a52_free(sh->context); } static int control(sh_audio_t *sh,int cmd,void* arg, ...)