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/binaryview.py | |
| parent | 33bddd0c8ad5c45a07c56caa964dd42631cd169c (diff) | |
Fix a bunch of reference miscounts in the C++ and python apis
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 3ebe79af..84a415e2 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -6293,7 +6293,7 @@ class BinaryView: obj = core.BNGetAnalysisTypeByName(self.handle, _name) if not obj: return None - return _types.Type.create(obj, platform=self.platform) + return _types.Type.create(core.BNNewTypeReference(obj), platform=self.platform) def get_type_by_id(self, id: str) -> Optional['_types.Type']: """ @@ -6314,7 +6314,7 @@ class BinaryView: obj = core.BNGetAnalysisTypeById(self.handle, id) if not obj: return None - return _types.Type.create(obj, platform=self.platform) + return _types.Type.create(core.BNNewTypeReference(obj), platform=self.platform) def get_type_name_by_id(self, id: str) -> Optional['_types.QualifiedName']: """ @@ -6550,7 +6550,7 @@ class BinaryView: ) if handle is None: return None - return _types.Type.create(handle, platform=self.platform) + return _types.Type.create(core.BNNewTypeReference(handle), platform=self.platform) def import_library_object(self, name: str, lib: typelibrary.TypeLibrary = None) -> Optional['_types.Type']: """ @@ -6572,7 +6572,7 @@ class BinaryView: ) if handle is None: return None - return _types.Type.create(handle, platform=self.platform) + return _types.Type.create(core.BNNewTypeReference(handle), platform=self.platform) def export_type_to_library(self, lib: typelibrary.TypeLibrary, name: Optional[str], type_obj: StringOrType) -> None: """ |
