Index: net/http/http_server_properties_impl.cc |
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc |
index c42293ae54eeae48df4f1d3ba2220e9e7f375735..bbf30c8b2f31f330611d66199ee191fa77816568 100644 |
--- a/net/http/http_server_properties_impl.cc |
+++ b/net/http/http_server_properties_impl.cc |
@@ -412,10 +412,10 @@ base::Value* HttpServerPropertiesImpl::GetAlternativeServiceInfoAsValue() |
alternative_service_string.append(" (broken)"); |
} |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetString("host_port_pair", host_port_pair.ToString()); |
dict->SetString("alternative_service", alternative_service_string); |
- dict_list->Append(dict); |
+ dict_list->Append(dict.Pass()); |
} |
return dict_list; |
} |