mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 02:33:53 +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 {
|
} else {
|
||||||
GST_ERROR_OBJECT (raw->upload, "Failed to allocate wrapped texture");
|
GST_ERROR_OBJECT (raw->upload, "Failed to allocate wrapped texture");
|
||||||
gst_buffer_unref (*outbuf);
|
gst_buffer_unref (*outbuf);
|
||||||
|
gst_object_unref (allocator);
|
||||||
return GST_GL_UPLOAD_ERROR;
|
return GST_GL_UPLOAD_ERROR;
|
||||||
}
|
}
|
||||||
gst_object_unref (allocator);
|
gst_object_unref (allocator);
|
||||||
|
|
Loading…
Reference in a new issue