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

Unified Diff: chrome/browser/devtools/devtools_protocol.cc

Issue 305013006: Fix memory leak in DevToolsProtocol::ParseCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « chrome/browser/devtools/devtools_protocol.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_protocol.cc
diff --git a/chrome/browser/devtools/devtools_protocol.cc b/chrome/browser/devtools/devtools_protocol.cc
index ef7cb6ae63a950f11404acbc7175e81cd1143925..1823033a1742f5d042edfe80d4839e03dc9b14a3 100644
--- a/chrome/browser/devtools/devtools_protocol.cc
+++ b/chrome/browser/devtools/devtools_protocol.cc
@@ -129,7 +129,7 @@ DevToolsProtocol::Command* DevToolsProtocol::ParseCommand(
base::DictionaryValue* params = NULL;
command_dict->GetDictionary(kParamsParam, &params);
- return new Command(id, method, params ? params->DeepCopy() : NULL);
+ return new Command(id, method, params);
}
// static
« no previous file with comments | « chrome/browser/devtools/devtools_protocol.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698