Commit bc0e93da authored by apatrick@chromium.org's avatar apatrick@chromium.org

Revert 95441

This attempted fix for the bug referenced below did not help.

Original message:

TaskClosureAdapter::Run does not invoke the task if it is null.

This is an attempt to fix http://crbug.com/81449. If this actually fixes it then there is probably something more fundamentally wrong.

BUG=81449

Review URL: http://codereview.chromium.org/7598015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95931 0039d316-1c4b-4281-b951-d872f2087c98
parent f8893079
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment