Index: src/sampler.cc |
diff --git a/src/sampler.cc b/src/sampler.cc |
index db7a54e7d72088f195622fe627b659b51a27b620..d72ed1acdb832e224c490b736954bf6d908ebb88 100644 |
--- a/src/sampler.cc |
+++ b/src/sampler.cc |
@@ -415,7 +415,7 @@ class SamplerThread : public Thread { |
: Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)), |
interval_(interval) {} |
- static void SetUp() { if (!mutex_) mutex_ = new Mutex; } |
+ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } |
static void TearDown() { delete mutex_; } |
static void AddActiveSampler(Sampler* sampler) { |