avformat/movenc: use av_freep() instead of av_free() except for local variables before return

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/37/head
Michael Niedermayer 12 years ago
parent b1e276f8df
commit c443689afb
  1. 4
      libavformat/movenc.c

@ -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…
Cancel
Save