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;
|
||||
|
||||
for (i = 0; i < s->frames; i++)
|
||||
av_free(s->mp3decctx[i]);
|
||||
av_freep(&s->mp3decctx[i]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user