[Lldb-commits] [lldb] r148597 - /lldb/trunk/source/Target/Process.cpp

Greg Clayton gclayton at apple.com
Fri Jan 20 15:08:34 PST 2012


Author: gclayton
Date: Fri Jan 20 17:08:34 2012
New Revision: 148597

URL: http://llvm.org/viewvc/llvm-project?rev=148597&view=rev
Log:
<rdar://problem/10732738>

Release more stuff in Process::Destroy().


Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=148597&r1=148596&r2=148597&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri Jan 20 17:08:34 2012
@@ -844,8 +844,18 @@
     
     // We need to destroy the loader before the derived Process class gets destroyed
     // since it is very likely that undoing the loader will require access to the real process.
-    m_dyld_ap.reset();
+    m_dynamic_checkers_ap.reset();
+    m_abi_sp.reset();
     m_os_ap.reset();
+    m_dyld_ap.reset();
+    m_thread_list.Clear();
+    std::vector<Notifications> empty_notifications;
+    m_notifications.swap(empty_notifications);
+    m_image_tokens.clear();
+    m_memory_cache.Clear();
+    m_allocated_memory_cache.Clear();
+    m_language_runtimes.clear();
+    m_next_event_action_ap.reset();
 }
 
 void





More information about the lldb-commits mailing list