mmsh/mmsh_close: use ffurl_closep()

avoid using freed pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-06-17 21:34:52 +02:00
parent 0329345da2
commit c7755c348b
1 changed files with 1 additions and 1 deletions

View 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;