From: Michael Niedermayer <[email protected]>

Signed-off-by: Anton Khirnov <[email protected]>
---
 libavfilter/avfilter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index abeae14..86d961b 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -75,8 +75,8 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
         return;
     if (!(--ref->buf->refcount))
         ref->buf->free(ref->buf);
-    av_free(ref->video);
-    av_free(ref->audio);
+    av_freep(&ref->video);
+    av_freep(&ref->audio);
     av_free(ref);
 }
 
-- 
1.7.5.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to