summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/webui/options/extension_settings_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/options/extension_settings_handler.cc b/chrome/browser/ui/webui/options/extension_settings_handler.cc
index 4fb7156..ac8e232 100644
--- a/chrome/browser/ui/webui/options/extension_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/extension_settings_handler.cc
@@ -153,9 +153,10 @@ void ExtensionSettingsHandler::IconLoader::ReportResultOnUIThread(
DictionaryValue* json) {
if (handler_)
handler_->OnIconsLoaded(json);
+ else
+ delete json;
}
-
///////////////////////////////////////////////////////////////////////////////
//
// ExtensionSettingsHandler