From a60b24c93710852f751424e0a01f3134a5c6b6a1 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Fri, 8 Jan 2016 11:21:21 -0700 Subject: [PATCH] MemoryWatcher: Initialize m_running to false to prevent crashes on OSX in the dtor when it picks up the wrong initial value --- Source/Core/Core/MemoryWatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/MemoryWatcher.h b/Source/Core/Core/MemoryWatcher.h index ebe2b89c50..e49a647aa5 100644 --- a/Source/Core/Core/MemoryWatcher.h +++ b/Source/Core/Core/MemoryWatcher.h @@ -36,7 +36,7 @@ private: void WatcherThread(); std::thread m_watcher_thread; - std::atomic_bool m_running; + std::atomic_bool m_running{false}; int m_fd; sockaddr_un m_addr;