From 07e4ed5637f5484cac4f5af2b890a8720b39e0b7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Jan 2015 20:09:30 +0100 Subject: [PATCH] avformat/mov: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 248faf73a1..19ec11f968 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3754,7 +3754,7 @@ static int mov_read_close(AVFormatContext *s) sc->drefs_count = 0; if (!sc->pb_is_copied) - avio_close(sc->pb); + avio_closep(&sc->pb); sc->pb = NULL; av_freep(&sc->chunk_offsets);