mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
gl/upload/meta: remove unneeded texture deletion
The textures are managed by the GstGLMemory inside the output buffer. Freeing them prematurely may result in a use-after-free.
This commit is contained in:
parent
15a3b0f6ce
commit
6b7f94abb2
1 changed files with 0 additions and 7 deletions
|
@ -910,16 +910,9 @@ static void
|
|||
_upload_meta_upload_free (gpointer impl)
|
||||
{
|
||||
struct GLUploadMeta *upload = impl;
|
||||
gint i;
|
||||
|
||||
g_return_if_fail (impl != NULL);
|
||||
|
||||
for (i = 0; i < GST_GL_UPLOAD_MAX_PLANES; i++) {
|
||||
if (upload->texture_ids[i])
|
||||
gst_gl_context_del_texture (upload->upload->context,
|
||||
&upload->texture_ids[i]);
|
||||
}
|
||||
|
||||
if (upload->params)
|
||||
gst_gl_allocation_params_free ((GstGLAllocationParams *) upload->params);
|
||||
|
||||
|
|
Loading…
Reference in a new issue