Browse code

avfilter_unref_buffer: favor av_freep() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/05/07 06:37:43
Showing 1 changed files
... ...
@@ -75,8 +75,8 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
75 75
         return;
76 76
     if (!(--ref->buf->refcount))
77 77
         ref->buf->free(ref->buf);
78
-    av_free(ref->video);
79
-    av_free(ref->audio);
78
+    av_freep(&ref->video);
79
+    av_freep(&ref->audio);
80 80
     av_free(ref);
81 81
 }
82 82