From 9e06c61f699423ef20673e963207fed4dd02bf42 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 3 Aug 2023 09:40:39 -0400 Subject: Ensure Type objects are created correctly everywhere and add guardrail --- python/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/component.py') 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) -- cgit v1.3.1