Commit 3521c70d authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dirac_parser: use av_freep(), do not leave stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c712d240
...@@ -251,7 +251,7 @@ static void dirac_parse_close(AVCodecParserContext *s) ...@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment