Commit 02f56bfc authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/sierravmd: use av_freep() for freeing context fields

This ensures that there are no stale pointers
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 56305773
......@@ -252,8 +252,8 @@ static int vmd_read_header(AVFormatContext *s)
return 0;
error:
av_free(raw_frame_table);
av_free(vmd->frame_table);
av_freep(&raw_frame_table);
av_freep(&vmd->frame_table);
return ret;
}
......@@ -304,7 +304,7 @@ static int vmd_read_close(AVFormatContext *s)
{
VmdDemuxContext *vmd = s->priv_data;
av_free(vmd->frame_table);
av_freep(&vmd->frame_table);
return 0;
}
......
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