diff options
-rw-r--r-- | chrome/browser/autofill/autofill_manager.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc index 9b830c4..0222bd2 100644 --- a/chrome/browser/autofill/autofill_manager.cc +++ b/chrome/browser/autofill/autofill_manager.cc @@ -762,12 +762,12 @@ void AutoFillManager::ParseForms( for (std::vector<FormData>::const_iterator iter = forms.begin(); iter != forms.end(); ++iter) { - FormStructure* form_structure = new FormStructure(*iter); + scoped_ptr<FormStructure> form_structure(new FormStructure(*iter)); if (!form_structure->ShouldBeParsed()) continue; - DeterminePossibleFieldTypes(form_structure); - form_structures_.push_back(form_structure); + DeterminePossibleFieldTypes(form_structure.get()); + form_structures_.push_back(form_structure.release()); } // If none of the forms were parsed, no use querying the server. |