Commit fc8d59fa authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2a26b22a
......@@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
H264Context *h = s->priv_data;
ParseContext *pc = &h->parse_context;
av_free(pc->buffer);
av_freep(&pc->buffer);
ff_h264_free_context(h);
}
......
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