mmsh/mmsh_close: use av_freep()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Jun 2013 19:31:07 +0000 (21:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Jun 2013 19:33:12 +0000 (21:33 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mmsh.c

index 86a0575..10d2a04 100644 (file)
@@ -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;
 }