mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
glupload: Fix allocator leak
It fixes allocator leak in failure case
This commit is contained in:
parent
39dcceb028
commit
32ae3e336d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue