1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02: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:
Michael Niedermayer 2015-01-06 12:53:25 +01:00
parent 59ca6e2586
commit da0dadbee4

View File

@ -38,7 +38,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
{ {
if (ptr->extended_data != ptr->data) if (ptr->extended_data != ptr->data)
av_freep(&ptr->extended_data); av_freep(&ptr->extended_data);
av_free(ptr->data[0]); av_freep(&ptr->data[0]);
av_free(ptr); av_free(ptr);
} }