[FFmpeg-cvslog] mmsh/mmsh_close: use av_freep()

Michael Niedermayer git at videolan.org
Mon Jun 17 22:17:19 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 17 21:31:07 2013 +0200| [0329345da24e20ea964bd4b9711dab3f2ff04fd4] | committer: Michael Niedermayer

mmsh/mmsh_close: use av_freep()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0329345da24e20ea964bd4b9711dab3f2ff04fd4
---

 libavformat/mmsh.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c
index 86a0575..10d2a04 100644
--- a/libavformat/mmsh.c
+++ b/libavformat/mmsh.c
@@ -67,8 +67,8 @@ static int mmsh_close(URLContext *h)
     MMSContext *mms   = &mmsh->mms;
     if (mms->mms_hd)
         ffurl_close(mms->mms_hd);
-    av_free(mms->streams);
-    av_free(mms->asf_header);
+    av_freep(&mms->streams);
+    av_freep(&mms->asf_header);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list