summaryrefslogtreecommitdiffstats
path: root/tools/memory_watcher/dllmain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/memory_watcher/dllmain.cc')
-rw-r--r--tools/memory_watcher/dllmain.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/memory_watcher/dllmain.cc b/tools/memory_watcher/dllmain.cc
index a7d69f4..f60ce8b 100644
--- a/tools/memory_watcher/dllmain.cc
+++ b/tools/memory_watcher/dllmain.cc
@@ -60,9 +60,8 @@ DWORD WINAPI ThreadMain(LPVOID) {
case WAIT_OBJECT_0:
if (g_memory_watcher) {
g_memory_watcher->DumpLeaks();
- // After dumping, we teardown.
- ExitProcess(0);
}
+ stopping = true;
break;
case WAIT_OBJECT_0 + 1:
stopping = true;