summaryrefslogtreecommitdiff
path: root/plugins/itanium/component.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/itanium/component.c')
-rw-r--r--plugins/itanium/component.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c
index 3791c4c..d891c51 100644
--- a/plugins/itanium/component.c
+++ b/plugins/itanium/component.c
@@ -1500,6 +1500,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
}
g_template_type_set_name(G_TEMPLATE_TYPE(result), name);
+ free(name);
if (ns != NULL)
itd_prepend_namespace_to_type(result, ns);
@@ -1816,7 +1817,10 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin
result = NULL;
}
else
+ {
g_template_type_add_param(G_TEMPLATE_TYPE(result), param);
+ g_object_unref(G_OBJECT(param));
+ }
}