diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-07 02:18:37 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-01-07 02:20:45 +0000 |
commit | cc1fc8eca82f3869026e70a5c0c6b696e2e14101 (patch) | |
tree | 3cafa45d274f293a154819dc97c18e55290d2b98 | |
parent | c65bf460adebef53da212b21059d4223f029437e (diff) |
indexers: fix two small leaks
element factory plugin_names are interned strings these days.
-rw-r--r-- | plugins/indexers/gstfileindex.c | 2 | ||||
-rw-r--r-- | 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 d30e2659e..727f6ca01 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 76ef8fd3d..fd276fae4 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 (), |