mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
avcodec/mpegaudiodec_template: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
993a2487de
commit
c5e295cb9d
@ -1819,7 +1819,7 @@ static av_cold int decode_close_mp3on4(AVCodecContext * avctx)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < s->frames; i++)
|
for (i = 0; i < s->frames; i++)
|
||||||
av_free(s->mp3decctx[i]);
|
av_freep(&s->mp3decctx[i]);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user