comparison rmdec.c @ 4139:b5f97b5a8925 libavformat

av_free() -> av_freep(), patch by Reimar Doffinger, see discussion in "rmdec.c: double free" thread on mailinglist.
author rbultje
date Sun, 28 Dec 2008 23:25:17 +0000
parents aff3f79228d3
children 68230afdf021
comparison
equal deleted inserted replaced
4138:aff3f79228d3 4139:b5f97b5a8925
79 return rms; 79 return rms;
80 } 80 }
81 81
82 void ff_rm_free_rmstream (RMStream *rms) 82 void ff_rm_free_rmstream (RMStream *rms)
83 { 83 {
84 av_free(rms->videobuf); 84 av_freep(&rms->videobuf);
85 av_free(rms->audiobuf); 85 av_freep(&rms->audiobuf);
86 } 86 }
87 87
88 static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb, 88 static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,
89 AVStream *st, RMStream *ast, int read_all) 89 AVStream *st, RMStream *ast, int read_all)
90 { 90 {