mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-03-03 10:17:46 +00:00
avformat/avidec: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e631872f13
commit
51b193214d
@ -1847,12 +1847,12 @@ static int avi_read_close(AVFormatContext *s)
|
||||
av_freep(&ast->sub_ctx->pb);
|
||||
avformat_close_input(&ast->sub_ctx);
|
||||
}
|
||||
av_free(ast->sub_buffer);
|
||||
av_freep(&ast->sub_buffer);
|
||||
av_free_packet(&ast->sub_pkt);
|
||||
}
|
||||
}
|
||||
|
||||
av_free(avi->dv_demux);
|
||||
av_freep(&avi->dv_demux);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user