From 95b08b75baeae2989509f654e9700a14f22a3629 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 22 May 2015 00:27:36 +1000 Subject: [PATCH] glupload: Don't leak all memory uploaded via raw uploads. Remove an extra ref missed when switching over to not reusing output textures --- gst-libs/gst/gl/gstglupload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index c4b9746..e5f1ff0 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -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; -- 2.7.4