]> git.sesse.net Git - ffmpeg/commitdiff
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 f7680633091acd724d56b16d124e6dd3b2c454e1..8f7032f9932c443dc3e89b753ebd8c7d7b5136e8 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;                                                      \