You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mpegaudiodec_template: fix leaking fdsp for mp3on4float
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
@@ -1828,6 +1828,9 @@ static av_cold int decode_close_mp3on4(AVCodecContext * avctx)
|
|||||||
MP3On4DecodeContext *s = avctx->priv_data;
|
MP3On4DecodeContext *s = avctx->priv_data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (s->mp3decctx[0])
|
||||||
|
av_freep(&s->mp3decctx[0]->fdsp);
|
||||||
|
|
||||||
for (i = 0; i < s->frames; i++)
|
for (i = 0; i < s->frames; i++)
|
||||||
av_freep(&s->mp3decctx[i]);
|
av_freep(&s->mp3decctx[i]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user