Index: src/platform-solaris.cc |
diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc |
index be8bbfce76c97a50ce8a481ffd972eec4a9933c9..0106e5796b5617ad0b854542566aa3a0fc9e5b64 100644 |
--- a/src/platform-solaris.cc |
+++ b/src/platform-solaris.cc |
@@ -712,11 +712,8 @@ class SignalSender : public Thread { |
: Thread(Thread::Options("SignalSender", kSignalSenderStackSize)), |
interval_(interval) {} |
- static void SetUp() { |
- if (!mutex_) { |
- mutex_ = OS::CreateMutex(); |
- } |
- } |
+ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } |
+ static void TearDown() { delete mutex_; } |
static void InstallSignalHandler() { |
struct sigaction sa; |
@@ -870,6 +867,12 @@ void OS::SetUp() { |
} |
+void OS::TearDown() { |
+ SignalSender::TearDown(); |
+ delete limit_mutex; |
+} |
+ |
+ |
Sampler::Sampler(Isolate* isolate, int interval) |
: isolate_(isolate), |
interval_(interval), |