mirror of https://git.ffmpeg.org/ffmpeg.git
mmsh/mmsh_close: use ffurl_closep()
avoid using freed pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0329345da2
commit
c7755c348b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue