avfilter/buffer: use av_freep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 11:53:25 +0000 (12:53 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 14:07:50 +0000 (15:07 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/buffer.c

index 0327952..43dc669 100644 (file)
@@ -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);
 }