check: Don't leak the feature name

This commit is contained in:
Edward Hervey 2011-10-17 09:27:49 +02:00
parent 631bf1f3af
commit b03b4c47af

View file

@ -55,11 +55,13 @@ print_plugin (const gchar * marker, GstRegistry * registry, GstPlugin * plugin)
features = gst_registry_get_feature_list_by_plugin (registry, name);
for (f = features; f != NULL; f = f->next) {
GstPluginFeature *feature;
gchar *featurename;
feature = GST_PLUGIN_FEATURE (f->data);
GST_LOG ("%s: feature: %p %s", marker, feature,
gst_plugin_feature_get_name (feature));
featurename = gst_plugin_feature_get_name (feature);
GST_LOG ("%s: feature: %p %s", marker, feature, featurename);
g_free (featurename);
}
gst_plugin_feature_list_free (features);
}