mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
glupload: Don't leak all memory uploaded via raw uploads.
Remove an extra ref missed when switching over to not reusing output textures
This commit is contained in:
parent
5503937337
commit
95b08b75ba
1 changed files with 1 additions and 2 deletions
|
@ -766,8 +766,7 @@ _raw_data_upload_perform (gpointer impl, GstBuffer * buffer,
|
|||
|
||||
*outbuf = gst_buffer_new ();
|
||||
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&raw->upload->priv->in_info); i++) {
|
||||
gst_buffer_append_memory (*outbuf,
|
||||
gst_memory_ref ((GstMemory *) in_tex[i]));
|
||||
gst_buffer_append_memory (*outbuf, (GstMemory *) in_tex[i]);
|
||||
}
|
||||
|
||||
return GST_GL_UPLOAD_DONE;
|
||||
|
|
Loading…
Reference in a new issue