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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 10825059: Fix memory leak (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: removing.get() Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_helper.cc
===================================================================
--- chrome/browser/ui/sync/one_click_signin_helper.cc (revision 148786)
+++ chrome/browser/ui/sync/one_click_signin_helper.cc (working copy)
@@ -268,9 +268,9 @@
const ListValue* rejected_emails = profile->GetPrefs()->GetList(
prefs::kReverseAutologinRejectedEmailList);
if (!rejected_emails->empty()) {
- const Value* email_value = Value::CreateStringValue(email);
+ const scoped_ptr<Value> email_value(Value::CreateStringValue(email));
ListValue::const_iterator iter = rejected_emails->Find(
- *email_value);
+ *email_value);
if (iter != rejected_emails->end())
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698