From c3693b77c1fa9c1b5c45483045eeab929cf7bd16 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 23 Aug 2016 22:52:32 -0400 Subject: Fix some memory leaks --- function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 7c188e72..c5033276 100644 --- a/function.cpp +++ b/function.cpp @@ -406,13 +406,13 @@ map Function::GetStackLayout() } -void Function::CreateAutoStackVariable(int64_t offset, Type* type, const string& name) +void Function::CreateAutoStackVariable(int64_t offset, Ref 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, const string& name) { BNCreateUserStackVariable(m_object, offset, type->GetObject(), name.c_str()); } -- cgit v1.3.1