summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-08-23 22:52:32 -0400
committerRusty Wagner <rusty@vector35.com>2016-08-23 22:52:32 -0400
commitc3693b77c1fa9c1b5c45483045eeab929cf7bd16 (patch)
tree710f565102e38c7804a6c7d9dfd93f2117a9ae91 /function.cpp
parentb3e607f82b97bf8fe5718e7634c0a037a8f103ac (diff)
Fix some memory leaks
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/function.cpp b/function.cpp
index 7c188e72..c5033276 100644
--- a/function.cpp
+++ b/function.cpp
@@ -406,13 +406,13 @@ map<int64_t, StackVariable> Function::GetStackLayout()
}
-void Function::CreateAutoStackVariable(int64_t offset, Type* type, const string& name)
+void Function::CreateAutoStackVariable(int64_t offset, Ref<Type> type, const string& name)
{
BNCreateAutoStackVariable(m_object, offset, type->GetObject(), name.c_str());
}
-void Function::CreateUserStackVariable(int64_t offset, Type* type, const string& name)
+void Function::CreateUserStackVariable(int64_t offset, Ref<Type> type, const string& name)
{
BNCreateUserStackVariable(m_object, offset, type->GetObject(), name.c_str());
}