mmsh/mmsh_close: use ffurl_closep()
avoid using freed pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user