From 32ae3e336d6de14a329cf98e9d42e321309b50fd Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Fri, 15 Nov 2019 18:06:13 +0900 Subject: [PATCH] glupload: Fix allocator leak It fixes allocator leak in failure case --- gst-libs/gst/gl/gstglupload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 67ec4f4..57232b6 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -1304,6 +1304,7 @@ _raw_data_upload_perform (gpointer impl, GstBuffer * buffer, } else { GST_ERROR_OBJECT (raw->upload, "Failed to allocate wrapped texture"); gst_buffer_unref (*outbuf); + gst_object_unref (allocator); return GST_GL_UPLOAD_ERROR; } gst_object_unref (allocator); -- 2.7.4