mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
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>
This commit is contained in:
parent
563057731a
commit
02f56bfcc3
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue