summaryrefslogtreecommitdiff
path: root/python/component.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/component.py')
-rw-r--r--python/component.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/component.py b/python/component.py
index 940cbe97..0c772de8 100644
--- a/python/component.py
+++ b/python/component.py
@@ -325,7 +325,7 @@ class Component:
try:
for i in range(count.value):
- _types.append(types.Type(core.BNNewTypeReference(bn_types[i])))
+ _types.append(types.Type.create(core.BNNewTypeReference(bn_types[i])))
finally:
core.BNComponentFreeReferencedTypes(bn_types, count.value)