mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
avfilter/buffer: use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
59ca6e2586
commit
da0dadbee4
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
|
|||
{
|
||||
if (ptr->extended_data != ptr->data)
|
||||
av_freep(&ptr->extended_data);
|
||||
av_free(ptr->data[0]);
|
||||
av_freep(&ptr->data[0]);
|
||||
av_free(ptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue