Mercurial > libavformat.hg
diff 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 |
line wrap: on
line diff
--- a/rmdec.c Sun Dec 28 23:23:59 2008 +0000 +++ b/rmdec.c Sun Dec 28 23:25:17 2008 +0000 @@ -81,8 +81,8 @@ void ff_rm_free_rmstream (RMStream *rms) { - av_free(rms->videobuf); - av_free(rms->audiobuf); + av_freep(&rms->videobuf); + av_freep(&rms->audiobuf); } static int rm_read_audio_stream_info(AVFormatContext *s, ByteIOContext *pb,