genericopenlibs/cppstdlib/stl/src/allocators.cpp
branchRCL_3
changeset 75 254b651f304e
parent 57 2efc27d87e1c
--- a/genericopenlibs/cppstdlib/stl/src/allocators.cpp	Wed Sep 15 14:02:55 2010 +0300
+++ b/genericopenlibs/cppstdlib/stl/src/allocators.cpp	Wed Oct 13 16:27:53 2010 +0300
@@ -770,7 +770,10 @@
 struct __node_alloc_cleaner {
   ~__node_alloc_cleaner()
       {
-      __node_alloc_impl::_S_dealloc_call(); 
+      __node_alloc_impl::_S_dealloc_call();
+#ifndef _STLP_USE_LOCK_FREE_IMPLEMENTATION
+      std::_Node_Alloc_Lock::_S_lock._M_destroy();
+#endif//_STLP_USE_LOCK_FREE_IMPLEMENTATION
       }
 };