mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c712d240b1
commit
3521c70dab
|
@ -251,7 +251,7 @@ static void dirac_parse_close(AVCodecParserContext *s)
|
||||||
DiracParseContext *pc = s->priv_data;
|
DiracParseContext *pc = s->priv_data;
|
||||||
|
|
||||||
if (pc->buffer_size > 0)
|
if (pc->buffer_size > 0)
|
||||||
av_free(pc->buffer);
|
av_freep(&pc->buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVCodecParser ff_dirac_parser = {
|
AVCodecParser ff_dirac_parser = {
|
||||||
|
|
Loading…
Reference in New Issue