summaryrefslogtreecommitdiff
path: root/python/component.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2023-08-03 09:40:39 -0400
committerPeter LaFosse <peter@vector35.com>2023-11-02 15:33:29 -0400
commit9e06c61f699423ef20673e963207fed4dd02bf42 (patch)
tree1f1f8aaa744df0f01150cb493740ba372a756512 /python/component.py
parent1bf339b5a6613d177243d14528d05763652560bd (diff)
Ensure Type objects are created correctly everywhere and add guardrail
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)