summaryrefslogtreecommitdiff
path: root/plugins/itanium
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-18 19:32:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-18 19:32:15 (GMT)
commite0949633787945ca7ca8b2498f2bbcbf1255ff4b (patch)
tree1ebec2469d12676a5efbdb41c6c404e80574185c /plugins/itanium
parent601b8149bf81231a09e2977dbdbfe8e8e568c1f4 (diff)
Updated the code for template types.
Diffstat (limited to 'plugins/itanium')
-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));
+ }
}