mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mov: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f9ddaa35c7
commit
07e4ed5637
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user