Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index b7eed47cba86c8d5490b479e2f0934e4fde8ea26..c226e2f3f82230e54d2563e929155194f199052d 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -1888,8 +1888,7 @@ class SamplerThread : public Thread { |
ScopedLock lock(mutex_); |
SamplerRegistry::RemoveActiveSampler(sampler); |
if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { |
- RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown(); |
- instance_->Join(); |
+ RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); |
delete instance_; |
instance_ = NULL; |
} |