caps: fix caps feature leak
authorTim-Philipp Müller <tim@centricular.net>
Thu, 4 Apr 2013 22:12:52 +0000 (23:12 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 4 Apr 2013 22:14:13 +0000 (23:14 +0100)
Fixes leaks in 14 core unit tests including
gst/gstcaps.

gst/gstcaps.c

index 20f51fa..708575d 100644 (file)
@@ -838,7 +838,7 @@ gst_caps_get_features (const GstCaps * caps, guint index)
 
   features = gst_caps_get_features_unchecked (caps, index);
   if (!features)
-    features = gst_caps_features_copy (GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY);
+    features = GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY;
 
   return features;
 }