buffersrc: Use the correct deallocation function
authorFederico Tomassetti <f.tomassetti@gmail.com>
Mon, 20 Apr 2015 19:12:05 +0000 (20:12 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 22 Apr 2015 10:26:53 +0000 (12:26 +0200)
This correction was suggested to me by Michael Niedermayer

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavfilter/buffersrc.c

index f768063..8f7032f 100644 (file)
@@ -195,7 +195,7 @@ do {                                                                    \
     ref_out = av_buffer_create(data, data_size, compat_unref_buffer,    \
                                dummy_ref, 0);                           \
     if (!ref_out) {                                                     \
-        av_freep(&dummy_ref);                                           \
+        av_buffer_unref(&dummy_ref);                                    \
         av_frame_unref(frame);                                          \
         ret = AVERROR(ENOMEM);                                          \
         goto fail;                                                      \