From b03b4c47afe4120a33c6cf4cb371f28686360bac Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 17 Oct 2011 09:27:49 +0200 Subject: [PATCH] check: Don't leak the feature name --- tests/check/gst/gstregistry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/check/gst/gstregistry.c b/tests/check/gst/gstregistry.c index 91190cc53b..6d13cce256 100644 --- a/tests/check/gst/gstregistry.c +++ b/tests/check/gst/gstregistry.c @@ -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); }