summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-04-04 23:12:52 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-04-04 23:14:13 +0100
commitcf69475aeb42b0063ebc49ea67ef544fd22a8009 (patch)
tree138ff83f79ddf4b8ccbb98fa94df6c1711825d75
parentbda406c42f4005dd07e7997a1a2443a1543d69f6 (diff)
caps: fix caps feature leak
Fixes leaks in 14 core unit tests including gst/gstcaps.
-rw-r--r--gst/gstcaps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstcaps.c b/gst/gstcaps.c
index 20f51fad4..708575dd4 100644
--- a/gst/gstcaps.c
+++ b/gst/gstcaps.c
@@ -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;
}