indexers: fix two small leaks
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 7 Jan 2011 02:18:37 +0000 (02:18 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 7 Jan 2011 02:20:45 +0000 (02:20 +0000)
element factory plugin_names are interned strings these days.

plugins/indexers/gstfileindex.c
plugins/indexers/gstmemindex.c

index d30e265..727f6ca 100644 (file)
@@ -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 (),
index 76ef8fd..fd276fa 100644 (file)
@@ -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 (),