diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 67ec4f4e9f..57232b61d6 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);