summaryrefslogtreecommitdiffstats
path: root/remoting/host/json_host_config.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 19:18:30 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-18 19:18:30 +0000
commit31fd701637d04ae727433cfd216a6fadc2c859e6 (patch)
treee6a29e27bb25d62a6646486e212e6625e07524b2 /remoting/host/json_host_config.cc
parentf5743daf2a1580a1a4e123ff998d4072110165f7 (diff)
downloadchromium_src-31fd701637d04ae727433cfd216a6fadc2c859e6.zip
chromium_src-31fd701637d04ae727433cfd216a6fadc2c859e6.tar.gz
chromium_src-31fd701637d04ae727433cfd216a6fadc2c859e6.tar.bz2
Fixed memleak in JsonHostConfig.
BUG=46882 TEST=heapcheck on remoting_unittests Review URL: http://codereview.chromium.org/2819013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/json_host_config.cc')
-rw-r--r--remoting/host/json_host_config.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/remoting/host/json_host_config.cc b/remoting/host/json_host_config.cc
index 324b2d2..ecb54b9 100644
--- a/remoting/host/json_host_config.cc
+++ b/remoting/host/json_host_config.cc
@@ -40,6 +40,7 @@ void JsonHostConfig::Update(Task* task) {
AutoLock auto_lock(lock_);
task->Run();
}
+ delete task;
message_loop_proxy_->PostTask(
FROM_HERE, NewRunnableMethod(this, &JsonHostConfig::DoWrite));
}