Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: remoting/host/json_host_config.cc

Issue 2819013: Fixed memleak in JsonHostConfig. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/json_host_config.cc
diff --git a/remoting/host/json_host_config.cc b/remoting/host/json_host_config.cc
index 324b2d2d3871d909fbe3e68c52c7a2f399799cc0..ecb54b9b13780be0e4b433cd1d70fd8a51e2499d 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));
}
« no previous file with comments | « no previous file | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698