From cc1fc8eca82f3869026e70a5c0c6b696e2e14101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 7 Jan 2011 02:18:37 +0000 Subject: [PATCH] indexers: fix two small leaks element factory plugin_names are interned strings these days. --- plugins/indexers/gstfileindex.c | 2 +- plugins/indexers/gstmemindex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c index d30e2659ef..727f6ca01c 100644 --- a/plugins/indexers/gstfileindex.c +++ b/plugins/indexers/gstfileindex.c @@ -978,7 +978,7 @@ gst_file_index_plugin_init (GstPlugin * plugin) return FALSE; } - GST_PLUGIN_FEATURE (factory)->plugin_name = g_strdup (plugin->desc.name); + GST_PLUGIN_FEATURE (factory)->plugin_name = plugin->desc.name; GST_PLUGIN_FEATURE (factory)->loaded = TRUE; gst_registry_add_feature (gst_registry_get_default (), diff --git a/plugins/indexers/gstmemindex.c b/plugins/indexers/gstmemindex.c index 76ef8fd3d2..fd276fae44 100644 --- a/plugins/indexers/gstmemindex.c +++ b/plugins/indexers/gstmemindex.c @@ -434,7 +434,7 @@ gst_mem_index_plugin_init (GstPlugin * plugin) return FALSE; } - GST_PLUGIN_FEATURE (factory)->plugin_name = g_strdup (plugin->desc.name); + GST_PLUGIN_FEATURE (factory)->plugin_name = plugin->desc.name; GST_PLUGIN_FEATURE (factory)->loaded = TRUE; gst_registry_add_feature (gst_registry_get_default (),