Be sure to take the mutex when the destructor is called in case other threads are...
authorGreg Clayton <gclayton@apple.com>
Thu, 28 Mar 2013 18:41:44 +0000 (18:41 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 28 Mar 2013 18:41:44 +0000 (18:41 +0000)
llvm-svn: 178262

lldb/include/lldb/Target/SectionLoadList.h
lldb/source/Target/StackFrameList.cpp

index 6910380..ac05bf7 100644 (file)
@@ -38,6 +38,9 @@ public:
 
     ~SectionLoadList()
     {
+        // Call clear since this takes a lock and clears the section load list
+        // in case another thread is currently using this section load list
+        Clear();
     }
 
     bool
index d9d5544..39aa1bc 100644 (file)
@@ -65,6 +65,9 @@ StackFrameList::StackFrameList
 //----------------------------------------------------------------------
 StackFrameList::~StackFrameList()
 {
+    // Call clear since this takes a lock and clears the stack frame list
+    // in case another thread is currently using this stack frame list
+    Clear();
 }
 
 void