Commit 3f56224a authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/rtpdec_mpeg4: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef05af82
......@@ -95,9 +95,9 @@ static PayloadContext *new_context(void)
static void free_context(PayloadContext *data)
{
av_free(data->au_headers);
av_free(data->mode);
av_free(data);
av_freep(&data->au_headers);
av_freep(&data->mode);
av_freep(&data);
}
static int parse_fmtp_config(AVCodecContext *codec, char *value)
......
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