| Index: chrome/browser/content_settings/host_content_settings_map.cc
|
| diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
|
| index db119abc12f8dc404449aad34188db3939c7db7a..fe8fe1eaba0a5db2981ac0f61dab78bc4530f07d 100644
|
| --- a/chrome/browser/content_settings/host_content_settings_map.cc
|
| +++ b/chrome/browser/content_settings/host_content_settings_map.cc
|
| @@ -211,12 +211,11 @@ void HostContentSettingsMap::SetDefaultContentSetting(
|
| DCHECK(IsSettingAllowedForType(setting, content_type));
|
|
|
| base::Value* value = Value::CreateIntegerValue(setting);
|
| - content_settings_providers_[DEFAULT_PROVIDER]->SetWebsiteSetting(
|
| - ContentSettingsPattern::Wildcard(),
|
| - ContentSettingsPattern::Wildcard(),
|
| - content_type,
|
| - std::string(),
|
| - value);
|
| + if (!content_settings_providers_[DEFAULT_PROVIDER]->SetWebsiteSetting(
|
| + ContentSettingsPattern::Wildcard(), ContentSettingsPattern::Wildcard(),
|
| + content_type, std::string(), value)) {
|
| + delete value;
|
| + }
|
| }
|
|
|
| void HostContentSettingsMap::SetWebsiteSetting(
|
|
|