mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
indexfactory: fix memory leak
Introduced by commit bd302bb6
pluginfeature: avoid duplicating feature->name
https://bugzilla.gnome.org/show_bug.cgi?id=459466
https://bugzilla.gnome.org/show_bug.cgi?id=665703
This commit is contained in:
parent
c8909ab059
commit
c33b50e00f
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ gst_index_factory_new (const gchar * name, const gchar * longdesc, GType type)
|
|||
g_return_val_if_fail (name != NULL, NULL);
|
||||
factory = GST_INDEX_FACTORY (g_object_newv (GST_TYPE_INDEX_FACTORY, 0, NULL));
|
||||
|
||||
GST_PLUGIN_FEATURE_NAME (factory) = g_strdup (name);
|
||||
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE (factory), name);
|
||||
if (factory->longdesc)
|
||||
g_free (factory->longdesc);
|
||||
factory->longdesc = g_strdup (longdesc);
|
||||
|
|
Loading…
Reference in a new issue