summaryrefslogtreecommitdiff
path: root/highlevelil.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-03-18 12:35:46 -0400
committerPeter LaFosse <peter@vector35.com>2022-03-23 14:52:09 -0400
commit5646f03f9a61feb24584a8a5da94027783b16e5a (patch)
tree662104a1ddcc47cfd9c6717e90a5f56c137a1f2e /highlevelil.cpp
parent33bddd0c8ad5c45a07c56caa964dd42631cd169c (diff)
Fix a bunch of reference miscounts in the C++ and python apis
Diffstat (limited to 'highlevelil.cpp')
-rw-r--r--highlevelil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp
index aab49ea0..d0b3b4e2 100644
--- a/highlevelil.cpp
+++ b/highlevelil.cpp
@@ -491,7 +491,7 @@ Confidence<Ref<Type>> HighLevelILFunction::GetExprType(size_t expr)
BNTypeWithConfidence result = BNGetHighLevelILExprType(m_object, expr);
if (!result.type)
return nullptr;
- return Confidence<Ref<Type>>(new Type(result.type), result.confidence);
+ return Confidence<Ref<Type>>(new Type(BNNewTypeReference(result.type)), result.confidence);
}