glupload: Fix allocator leak

It fixes allocator leak in failure case
This commit is contained in:
Wonchul Lee 2019-11-15 18:06:13 +09:00 committed by GStreamer Merge Bot
parent 39dcceb028
commit 32ae3e336d

View file

@ -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);