| Index: net/dns/dns_config_service.cc
|
| diff --git a/net/dns/dns_config_service.cc b/net/dns/dns_config_service.cc
|
| index bfa4b8db84e648393eecfd4ce8a4d82ff6afcce7..38b61ffce9bc581a2608ca50ba96036f866bb5ee 100644
|
| --- a/net/dns/dns_config_service.cc
|
| +++ b/net/dns/dns_config_service.cc
|
| @@ -139,7 +139,7 @@ void DnsConfig::CopyIgnoreHosts(const DnsConfig& d) {
|
| }
|
|
|
| base::Value* DnsConfig::ToValue() const {
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| + scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
|
|
|
| base::ListValue* list = new base::ListValue();
|
| for (size_t i = 0; i < nameservers.size(); ++i)
|
| @@ -161,10 +161,9 @@ base::Value* DnsConfig::ToValue() const {
|
| dict->SetBoolean("use_local_ipv6", use_local_ipv6);
|
| dict->SetInteger("num_hosts", hosts.size());
|
|
|
| - return dict;
|
| + return dict.release();
|
| }
|
|
|
| -
|
| DnsConfigService::DnsConfigService()
|
| : watch_failed_(false),
|
| have_config_(false),
|
|
|