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 (),