Commit 19567c5e authored by earthdok@chromium.org's avatar earthdok@chromium.org

Plug a memory leak in google_apis_unittests.

BUG=405985
R=rogerta@chromium.org

Review URL: https://codereview.chromium.org/496753002

Cr-Commit-Position: refs/heads/master@{#291264}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291264 0039d316-1c4b-4281-b951-d872f2087c98
parent c28f28c8
...@@ -59,7 +59,7 @@ void MergeSessionHelper::ExternalCcResultFetcher::TimeoutForTests() { ...@@ -59,7 +59,7 @@ void MergeSessionHelper::ExternalCcResultFetcher::TimeoutForTests() {
void void
MergeSessionHelper::ExternalCcResultFetcher::OnGetCheckConnectionInfoSuccess( MergeSessionHelper::ExternalCcResultFetcher::OnGetCheckConnectionInfoSuccess(
const std::string& data) { const std::string& data) {
base::Value* value = base::JSONReader::Read(data); scoped_ptr<base::Value> value(base::JSONReader::Read(data));
const base::ListValue* list; const base::ListValue* list;
if (!value || !value->GetAsList(&list)) if (!value || !value->GetAsList(&list))
return; return;
......
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