glupload: Fix allocator leak
It fixes allocator leak in failure case
This commit is contained in:
parent
39dcceb028
commit
32ae3e336d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user