diff options
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/buffersrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index c4b7af4..bf77b88 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -242,7 +242,7 @@ do { \ ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \ dummy_ref, (buf->perms & AV_PERM_WRITE) ? 0 : AV_BUFFER_FLAG_READONLY); \ if (!ref_out) { \ - av_freep(&dummy_ref); \ + av_buffer_unref(&dummy_ref); \ av_frame_unref(frame); \ ret = AVERROR(ENOMEM); \ goto fail; \ |