mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-05 14:16:06 +00:00
check: Don't leak the feature name
This commit is contained in:
parent
631bf1f3af
commit
b03b4c47af
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue