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 10d2a043f1fc202c88d19198fa85c495392b9a6d..a6b53d9cda66c86ed32793e6089509849e408075 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)
     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;
     av_freep(&mms->streams);
     av_freep(&mms->asf_header);
     return 0;