[FFmpeg-cvslog] r16379 - trunk/libavformat/rmdec.c

rbultje subversion
Mon Dec 29 00:25:18 CET 2008


Author: rbultje
Date: Mon Dec 29 00:25:17 2008
New Revision: 16379

Log:
av_free() -> av_freep(), patch by Reimar Doffinger, see discussion in
"rmdec.c: double free" thread on mailinglist.

Modified:
   trunk/libavformat/rmdec.c

Modified: trunk/libavformat/rmdec.c
==============================================================================
--- trunk/libavformat/rmdec.c	Mon Dec 29 00:23:59 2008	(r16378)
+++ trunk/libavformat/rmdec.c	Mon Dec 29 00:25:17 2008	(r16379)
@@ -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,




More information about the ffmpeg-cvslog mailing list