summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-01-20 14:37:25 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-24 16:44:04 +0000
commit6b84f4573c876fb59c153bf082f2e9bdc9875f88 (patch)
tree75cde36015834ff604dc6a577954413cf0793b22
parent52978bd4e6e0523c3aa98e60abbbf8e7af0f959f (diff)
gstpluginloader: do not leak the description string
The description string was changed to an inlined string a while back. (But: no need to intern the const strings here, we just use the interning to avoid allocating duplicates and make memory management easier, since the strings will be around for the life-time of the app anyway). https://bugzilla.gnome.org/show_bug.cgi?id=640071
-rw-r--r--gst/gstpluginloader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c
index f2313f3a2..220e2dbce 100644
--- a/gst/gstpluginloader.c
+++ b/gst/gstpluginloader.c
@@ -339,9 +339,9 @@ plugin_loader_create_blacklist_plugin (GstPluginLoader * l,
plugin->basename = g_path_get_basename (plugin->filename);
plugin->desc.name = g_intern_string (plugin->basename);
- plugin->desc.description = g_strdup_printf ("Plugin for blacklisted file");
- plugin->desc.version = g_intern_string ("0.0.0");
- plugin->desc.license = g_intern_string ("BLACKLIST");
+ plugin->desc.description = "Plugin for blacklisted file";
+ plugin->desc.version = "0.0.0";
+ plugin->desc.license = "BLACKLIST";
plugin->desc.source = plugin->desc.license;
plugin->desc.package = plugin->desc.license;
plugin->desc.origin = plugin->desc.license;