diff options
Diffstat (limited to 'source/API/SBDebugger.cpp')
-rw-r--r-- | source/API/SBDebugger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/API/SBDebugger.cpp b/source/API/SBDebugger.cpp index f97d3f985..facf0e366 100644 --- a/source/API/SBDebugger.cpp +++ b/source/API/SBDebugger.cpp @@ -614,6 +614,7 @@ SBDebugger::DeleteTarget (lldb::SBTarget &target) { // 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(); } |