diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-03-18 12:35:46 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-03-23 14:52:09 -0400 |
| commit | 5646f03f9a61feb24584a8a5da94027783b16e5a (patch) | |
| tree | 662104a1ddcc47cfd9c6717e90a5f56c137a1f2e /python/typelibrary.py | |
| parent | 33bddd0c8ad5c45a07c56caa964dd42631cd169c (diff) | |
Fix a bunch of reference miscounts in the C++ and python apis
Diffstat (limited to 'python/typelibrary.py')
| -rw-r--r-- | python/typelibrary.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/typelibrary.py b/python/typelibrary.py index 8a56e978..2d2c8fb1 100644 --- a/python/typelibrary.py +++ b/python/typelibrary.py @@ -321,7 +321,7 @@ class TypeLibrary: t = core.BNGetTypeLibraryNamedObject(self.handle, name._to_core_struct()) if t is None: return None - return types.Type.create(t) + return types.Type.create(core.BNNewTypeReference(t)) def get_named_type(self, name: str) -> Optional[types.Type]: """ @@ -337,7 +337,7 @@ class TypeLibrary: t = core.BNGetTypeLibraryNamedType(self.handle, name._to_core_struct()) if t is None: return None - return types.Type.create(t) + return types.Type.create(core.BNNewTypeReference(t)) @property def named_objects(self) -> Dict[str, types.Type]: |
