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
3230e51993
commit
c9372ae33f
@ -766,8 +766,7 @@ _raw_data_upload_perform (gpointer impl, GstBuffer * buffer,
|
|||||||
|
|
||||||
*outbuf = gst_buffer_new ();
|
*outbuf = gst_buffer_new ();
|
||||||
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&raw->upload->priv->in_info); i++) {
|
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&raw->upload->priv->in_info); i++) {
|
||||||
gst_buffer_append_memory (*outbuf,
|
gst_buffer_append_memory (*outbuf, (GstMemory *) in_tex[i]);
|
||||||
gst_memory_ref ((GstMemory *) in_tex[i]));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return GST_GL_UPLOAD_DONE;
|
return GST_GL_UPLOAD_DONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user