glupload: Don't leak all memory uploaded via raw uploads.
authorJan Schmidt <jan@centricular.com>
Thu, 21 May 2015 14:27:36 +0000 (00:27 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:02 +0000 (19:32 +0000)
Remove an extra ref missed when switching over to not
reusing output textures

gst-libs/gst/gl/gstglupload.c

index c4b9746..e5f1ff0 100644 (file)
@@ -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;