From b928bbbb40ea26a153ff866a88ec06a23b59c6e4 Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sat, 7 Oct 2017 10:42:21 -0700 Subject: [PATCH] - attempt to see if this corrects tomreyns compile error: ==6454==ERROR: AddressSanitizer: heap-use-after-free --- source/shared_lib/sources/platform/common/base_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/common/base_thread.cpp b/source/shared_lib/sources/platform/common/base_thread.cpp index 42261bfd4..8bc5c01cc 100644 --- a/source/shared_lib/sources/platform/common/base_thread.cpp +++ b/source/shared_lib/sources/platform/common/base_thread.cpp @@ -209,8 +209,8 @@ void BaseThread::setQuitStatus(bool value) { bool BaseThread::getQuitStatus() { //bool retval = false; - static string mutexOwnerId = CODE_AT_LINE; - MutexSafeWrapper safeMutex(mutexQuit,mutexOwnerId); + //static string mutexOwnerId = CODE_AT_LINE; + MutexSafeWrapper safeMutex(mutexQuit,CODE_AT_LINE); //mutexQuit.setOwnerId(mutexOwnerId); bool retval = quit; safeMutex.ReleaseLock();