mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/movenc: use av_freep() instead of av_free() except for local variables before return
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b1e276f8df
commit
c443689afb
@ -3984,7 +3984,7 @@ static int mov_write_trailer(AVFormatContext *s)
|
||||
}
|
||||
|
||||
if (mov->chapter_track) {
|
||||
av_free(mov->tracks[mov->chapter_track].enc->extradata);
|
||||
av_freep(&mov->tracks[mov->chapter_track].enc->extradata);
|
||||
av_freep(&mov->tracks[mov->chapter_track].enc);
|
||||
}
|
||||
|
||||
@ -4007,7 +4007,7 @@ static int mov_write_trailer(AVFormatContext *s)
|
||||
av_freep(&mov->tracks[i].frag_info);
|
||||
|
||||
if (mov->tracks[i].vos_len)
|
||||
av_free(mov->tracks[i].vos_data);
|
||||
av_freep(&mov->tracks[i].vos_data);
|
||||
}
|
||||
|
||||
av_freep(&mov->tracks);
|
||||
|
Loading…
Reference in New Issue
Block a user