Note to self: don't introduce memory leaks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22422 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2005-07-13 02:58:04 +00:00
parent b639f1461e
commit 2497251e6d

View File

@ -31,6 +31,7 @@ Mutex::Mutex(bool /*recursive*/)
Mutex::~Mutex() Mutex::~Mutex()
{ {
DeleteCriticalSection((LPCRITICAL_SECTION)data_); DeleteCriticalSection((LPCRITICAL_SECTION)data_);
delete (LPCRITICAL_SECTION)data_;
data_ = 0; data_ = 0;
} }