From 060d53f1559d08a6923e45bdeffe8f22ca663049 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Sat, 8 Oct 2011 00:21:35 +0000 Subject: Fixed a memory leak of ASTResultSynthesizers, by attaching them to the ClangExpressionParser. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141452 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/lldb/Expression/ClangUserExpression.h | 2 ++ include/lldb/lldb-forward.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/lldb/Expression/ClangUserExpression.h b/include/lldb/Expression/ClangUserExpression.h index 279ed75b9..6f69cf047 100644 --- a/include/lldb/Expression/ClangUserExpression.h +++ b/include/lldb/Expression/ClangUserExpression.h @@ -325,6 +325,8 @@ private: std::auto_ptr m_local_variables; ///< The local expression variables, if the expression is DWARF. std::auto_ptr m_data_allocator; ///< The allocator that the parser uses to place strings for use by JIT-compiled code. + std::auto_ptr m_result_synthesizer; ///< The result synthesizer, if one is needed. + bool m_cplusplus; ///< True if the expression is compiled as a C++ member function (true if it was parsed when exe_ctx was in a C++ method). bool m_objectivec; ///< True if the expression is compiled as an Objective-C method (true if it was parsed when exe_ctx was in an Objective-C method). bool m_needs_object_ptr; ///< True if "this" or "self" must be looked up and passed in. False if the expression doesn't really use them and they can be NULL. diff --git a/include/lldb/lldb-forward.h b/include/lldb/lldb-forward.h index b31a4ae62..90987e7e9 100644 --- a/include/lldb/lldb-forward.h +++ b/include/lldb/lldb-forward.h @@ -24,6 +24,7 @@ class AddressRange; class AddressResolver; class ArchSpec; class Args; +class ASTResultSynthesizer; class Baton; class Block; class Breakpoint; -- cgit v1.2.3