mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
gstregistry: Don't leak feature name
This commit is contained in:
parent
2c64c53cd2
commit
631bf1f3af
1 changed files with 5 additions and 2 deletions
|
@ -277,8 +277,11 @@ gst_registry_finalize (GObject * object)
|
|||
GstPluginFeature *feature = f->data;
|
||||
|
||||
if (feature) {
|
||||
GST_LOG_OBJECT (registry, "removing feature %p (%s)",
|
||||
feature, gst_plugin_feature_get_name (feature));
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
gchar *name = gst_plugin_feature_get_name (feature);
|
||||
GST_LOG_OBJECT (registry, "removing feature %p (%s)", feature, name);
|
||||
g_free (name);
|
||||
#endif
|
||||
gst_object_unparent (GST_OBJECT_CAST (feature));
|
||||
}
|
||||
f = g_list_next (f);
|
||||
|
|
Loading…
Reference in a new issue