summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/task.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/task.cc b/base/task.cc
index a862cac..8c61473 100644
--- a/base/task.cc
+++ b/base/task.cc
@@ -53,11 +53,9 @@ TaskClosureAdapter::~TaskClosureAdapter() {
}
void TaskClosureAdapter::Run() {
- if (task_) {
- task_->Run();
- delete task_;
- task_ = NULL;
- }
+ task_->Run();
+ delete task_;
+ task_ = NULL;
}
// Don't leak tasks by default.