Note to self: don't introduce memory leaks.
authorJeff Cohen <jeffc@jolt-lang.org>
Wed, 13 Jul 2005 02:58:04 +0000 (02:58 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Wed, 13 Jul 2005 02:58:04 +0000 (02:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22422 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Mutex.inc

index 439ce1a401a8fe30c1cc77a34293af3ed8286840..0a4bc4b75149d04f1fc289d03de906cb102ba6c1 100644 (file)
@@ -31,6 +31,7 @@ Mutex::Mutex(bool /*recursive*/)
 Mutex::~Mutex()
 {
   DeleteCriticalSection((LPCRITICAL_SECTION)data_);
+  delete (LPCRITICAL_SECTION)data_;
   data_ = 0;
 }