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 --- binaryninjaapi.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index d3234dcc..f79e9d75 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -857,13 +857,13 @@ namespace BinaryNinja std::vector> GetSymbolsOfType(BNSymbolType type); std::vector> GetSymbolsOfType(BNSymbolType type, uint64_t start, uint64_t len); - void DefineAutoSymbol(Symbol* sym); - void UndefineAutoSymbol(Symbol* sym); + void DefineAutoSymbol(Ref sym); + void UndefineAutoSymbol(Ref sym); - void DefineUserSymbol(Symbol* sym); - void UndefineUserSymbol(Symbol* sym); + void DefineUserSymbol(Ref sym); + void UndefineUserSymbol(Ref sym); - void DefineImportedFunction(Symbol* importAddressSym, Function* func); + void DefineImportedFunction(Ref importAddressSym, Ref func); bool IsNeverBranchPatchAvailable(Architecture* arch, uint64_t addr); bool IsAlwaysBranchPatchAvailable(Architecture* arch, uint64_t addr); @@ -904,8 +904,8 @@ namespace BinaryNinja std::map> GetTypes(); Ref GetTypeByName(const std::string& name); bool IsTypeAutoDefined(const std::string& name); - void DefineType(const std::string& name, Type* type); - void DefineUserType(const std::string& name, Type* type); + void DefineType(const std::string& name, Ref type); + void DefineUserType(const std::string& name, Ref type); void UndefineType(const std::string& name); void UndefineUserType(const std::string& name); @@ -1643,8 +1643,8 @@ namespace BinaryNinja Ref CreateFunctionGraph(); std::map GetStackLayout(); - void CreateAutoStackVariable(int64_t offset, Type* type, const std::string& name); - void CreateUserStackVariable(int64_t offset, Type* type, const std::string& name); + void CreateAutoStackVariable(int64_t offset, Ref type, const std::string& name); + void CreateUserStackVariable(int64_t offset, Ref type, const std::string& name); void DeleteAutoStackVariable(int64_t offset); void DeleteUserStackVariable(int64_t offset); bool GetStackVariableAtFrameOffset(int64_t offset, StackVariable& var); -- cgit v1.3.1