summaryrefslogtreecommitdiff
path: root/plugins/itanium
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-09 13:01:58 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-09 13:01:58 (GMT)
commit5863af232b8fc57de210702afe659a7383bb8840 (patch)
tree18e6fd0fb7be2f01d23cda34f8d7b3f29b1a250b /plugins/itanium
parent32bef30025f5e3f513c2b4936c0573cc3b629961 (diff)
Fixed another batch of memory leaks.
Diffstat (limited to 'plugins/itanium')
-rw-r--r--plugins/itanium/component.c13
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));
+ }
}