glupload: fix memory leak
authorLuis de Bethencourt <luis@debethencourt.com>
Thu, 23 Jul 2015 09:57:26 +0000 (10:57 +0100)
committerLuis de Bethencourt <luis@debethencourt.com>
Thu, 23 Jul 2015 09:58:21 +0000 (10:58 +0100)
GstCapsFeatures need to be freed with gst_caps_features_free() after use.

CID #1312136, CID #1312136

gst-libs/gst/gl/gstglupload.c

index 5f0f637..56052bb 100644 (file)
@@ -185,6 +185,8 @@ _gl_memory_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
     ret = FALSE;
 
   gst_caps_features_free (gl_features);
+  gst_caps_features_free (gl_overlay_features);
+  gst_caps_features_free (system_memory_overlay_features);
 
   if (!ret)
     return FALSE;