diff options
Diffstat (limited to 'plugins/itanium')
-rw-r--r-- | plugins/itanium/component.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c index 5ebfeb9..7510b42 100644 --- a/plugins/itanium/component.c +++ b/plugins/itanium/component.c @@ -1408,8 +1408,17 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp) result = itd_translate_component_to_type(comp->binary.right); - if (result != NULL && ns != NULL) - itd_prepend_namespace_to_type(result, ns); + if (result != NULL) + { + if (ns != NULL) + itd_prepend_namespace_to_type(result, ns); + } + + else + { + if (ns != NULL) + g_object_unref(G_OBJECT(ns)); + } } |