summaryrefslogtreecommitdiff
path: root/libavformat/rmdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-12-28 23:25:17 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-12-28 23:25:17 +0000
commit7d204e67e8f991bfdfb6a6e91b6855b6c5a782c0 (patch)
tree9c28f612bdfb87293d355576f35d3d87fd5591d5 /libavformat/rmdec.c
parentc49a3ec30aaa8042335656982054f02847c03aae (diff)
av_free() -> av_freep(), patch by Reimar Doffinger, see discussion in
"rmdec.c: double free" thread on mailinglist. Originally committed as revision 16379 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 01e335be06..2471f94a00 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -81,8 +81,8 @@ RMStream *ff_rm_alloc_rmstream (void)
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,