mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
check: Don't leak the feature name
This commit is contained in:
parent
631bf1f3af
commit
b03b4c47af
1 changed files with 4 additions and 2 deletions
|
@ -55,11 +55,13 @@ print_plugin (const gchar * marker, GstRegistry * registry, GstPlugin * plugin)
|
||||||
features = gst_registry_get_feature_list_by_plugin (registry, name);
|
features = gst_registry_get_feature_list_by_plugin (registry, name);
|
||||||
for (f = features; f != NULL; f = f->next) {
|
for (f = features; f != NULL; f = f->next) {
|
||||||
GstPluginFeature *feature;
|
GstPluginFeature *feature;
|
||||||
|
gchar *featurename;
|
||||||
|
|
||||||
feature = GST_PLUGIN_FEATURE (f->data);
|
feature = GST_PLUGIN_FEATURE (f->data);
|
||||||
|
|
||||||
GST_LOG ("%s: feature: %p %s", marker, feature,
|
featurename = gst_plugin_feature_get_name (feature);
|
||||||
gst_plugin_feature_get_name (feature));
|
GST_LOG ("%s: feature: %p %s", marker, feature, featurename);
|
||||||
|
g_free (featurename);
|
||||||
}
|
}
|
||||||
gst_plugin_feature_list_free (features);
|
gst_plugin_feature_list_free (features);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue