caps: fix caps feature leak

Fixes leaks in 14 core unit tests including
gst/gstcaps.
This commit is contained in:
Tim-Philipp Müller 2013-04-04 23:12:52 +01:00
parent bda406c42f
commit cf69475aeb

View 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;
}