From c33b50e00fbfbd6dd21ef922320aa088fad3670f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 6 Dec 2011 23:52:53 +0000 Subject: [PATCH] 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 --- gst/gstindexfactory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstindexfactory.c b/gst/gstindexfactory.c index 62c79fd..2b96e05 100644 --- a/gst/gstindexfactory.c +++ b/gst/gstindexfactory.c @@ -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); -- 2.7.4