diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-17 21:34:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-17 21:34:52 +0200 |
commit | c7755c348bbe9e8c56099b1e5e40722b02dec5ec (patch) | |
tree | 65895d8a4c49f4cd8f71ee4d0c24fded69546bcc | |
parent | 0329345da24e20ea964bd4b9711dab3f2ff04fd4 (diff) | |
download | ffmpeg-c7755c348bbe9e8c56099b1e5e40722b02dec5ec.tar.gz |
mmsh/mmsh_close: use ffurl_closep()
avoid using freed pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mmsh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index 10d2a043f1..a6b53d9cda 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -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; |