diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 16:39:45 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 16:53:56 +0400 |
commit | 02f56bfcc3f596defccfa968a81372a2e21b2cfa (patch) | |
tree | 310142f1ea5189a6d464becaf857936cce04a79b /libavformat/sierravmd.c | |
parent | 563057731a5a634af469a9e59869d772b560a9ff (diff) |
avformat/sierravmd: use av_freep() for freeing context fields
This ensures that there are no stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sierravmd.c')
-rw-r--r-- | libavformat/sierravmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 9366a8f5dc..fad3dd3d8a 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -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; } |