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 /platform.cpp | |
| parent | 33bddd0c8ad5c45a07c56caa964dd42631cd169c (diff) | |
Fix a bunch of reference miscounts in the C++ and python apis
Diffstat (limited to 'platform.cpp')
| -rw-r--r-- | platform.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform.cpp b/platform.cpp index 68e812dc..b3ec68e8 100644 --- a/platform.cpp +++ b/platform.cpp @@ -349,7 +349,7 @@ Ref<Type> Platform::GetTypeByName(const QualifiedName& name) QualifiedName::FreeAPIObject(&nameObj); if (!type) return nullptr; - return new Type(type); + return new Type(BNNewTypeReference(type)); } @@ -360,7 +360,7 @@ Ref<Type> Platform::GetVariableByName(const QualifiedName& name) QualifiedName::FreeAPIObject(&nameObj); if (!type) return nullptr; - return new Type(type); + return new Type(BNNewTypeReference(type)); } @@ -371,7 +371,7 @@ Ref<Type> Platform::GetFunctionByName(const QualifiedName& name, bool exactMatch QualifiedName::FreeAPIObject(&nameObj); if (!type) return nullptr; - return new Type(type); + return new Type(BNNewTypeReference(type)); } @@ -389,7 +389,7 @@ Ref<Type> Platform::GetSystemCallType(uint32_t n) BNType* type = BNGetPlatformSystemCallType(m_object, n); if (!type) return nullptr; - return new Type(type); + return new Type(BNNewTypeReference(type)); } |
