Commit c7755c34 authored by Michael Niedermayer's avatar Michael Niedermayer

mmsh/mmsh_close: use ffurl_closep()

avoid using freed pointers
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0329345d
...@@ -66,7 +66,7 @@ static int mmsh_close(URLContext *h) ...@@ -66,7 +66,7 @@ static int mmsh_close(URLContext *h)
MMSHContext *mmsh = (MMSHContext *)h->priv_data; MMSHContext *mmsh = (MMSHContext *)h->priv_data;
MMSContext *mms = &mmsh->mms; MMSContext *mms = &mmsh->mms;
if (mms->mms_hd) if (mms->mms_hd)
ffurl_close(mms->mms_hd); ffurl_closep(&mms->mms_hd);
av_freep(&mms->streams); av_freep(&mms->streams);
av_freep(&mms->asf_header); av_freep(&mms->asf_header);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment