summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:09:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 20:19:20 +0100
commit07e4ed5637f5484cac4f5af2b890a8720b39e0b7 (patch)
tree3e75a3b735bdef45b65b902ff29a84f874560a3d /libavformat
parentf9ddaa35c7d9476022466672900b099f31587b14 (diff)
avformat/mov: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
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);