mmsh/mmsh_close: use ffurl_closep()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Jun 2013 19:34:52 +0000 (21:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Jun 2013 19:34:52 +0000 (21:34 +0200)
avoid using freed pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mmsh.c

index 10d2a04..a6b53d9 100644 (file)
@@ -66,7 +66,7 @@ static int mmsh_close(URLContext *h)
     MMSHContext *mmsh = (MMSHContext *)h->priv_data;
     MMSContext *mms   = &mmsh->mms;
     if (mms->mms_hd)
-        ffurl_close(mms->mms_hd);
+        ffurl_closep(&mms->mms_hd);
     av_freep(&mms->streams);
     av_freep(&mms->asf_header);
     return 0;