提交 07e4ed56 编写于 作者: M Michael Niedermayer

avformat/mov: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 f9ddaa35
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册