summaryrefslogtreecommitdiff
path: root/platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform.cpp')
-rw-r--r--platform.cpp8
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));
}