diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 22:09:30 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 22:19:20 +0300 |
commit | 07e4ed5637f5484cac4f5af2b890a8720b39e0b7 (patch) | |
tree | 3e75a3b735bdef45b65b902ff29a84f874560a3d /libavformat | |
parent | f9ddaa35c7d9476022466672900b099f31587b14 (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.c | 2 |
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); |