From fcb3fd63d360a4d9a033e86941b699ce96cdcdee Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 28 Aug 2018 17:28:26 -0400 Subject: [PATCH] bugfix (?) --- GUI/host/textthread.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/host/textthread.cc b/GUI/host/textthread.cc index e9856d6..f7bad29 100644 --- a/GUI/host/textthread.cc +++ b/GUI/host/textthread.cc @@ -9,6 +9,7 @@ TextThread::TextThread(ThreadParam tp, DWORD status) : tp(tp), status(status) {} TextThread::~TextThread() { + LOCK(ttMutex); SetEvent(deletionEvent); flushThread.join(); CloseHandle(deletionEvent);