[Lldb-commits] [lldb] r140845 - /lldb/trunk/source/API/SBDebugger.cpp
Greg Clayton
gclayton at apple.com
Thu Sep 29 21:14:54 PDT 2011
Author: gclayton
Date: Thu Sep 29 23:14:52 2011
New Revision: 140845
URL: http://llvm.org/viewvc/llvm-project?rev=140845&view=rev
Log:
Destroy a target when it is deleted.
Modified:
lldb/trunk/source/API/SBDebugger.cpp
Modified: lldb/trunk/source/API/SBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBDebugger.cpp?rev=140845&r1=140844&r2=140845&view=diff
==============================================================================
--- lldb/trunk/source/API/SBDebugger.cpp (original)
+++ lldb/trunk/source/API/SBDebugger.cpp Thu Sep 29 23:14:52 2011
@@ -614,6 +614,7 @@
{
// No need to lock, the target list is thread safe
result = m_opaque_sp->GetTargetList().DeleteTarget (target.m_opaque_sp);
+ target->Destroy();
target.Clear();
ModuleList::RemoveOrphanSharedModules();
}
More information about the lldb-commits
mailing list