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:
Jan Schmidt 2015-05-22 00:27:36 +10:00 committed by Tim-Philipp Müller
parent 5503937337
commit 95b08b75ba

View file

@ -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;