summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-09 15:48:28 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-09 15:48:28 +0000
commit41db456ecd6e5b6264a1db5f43a67d50ba3a2837 (patch)
treee3738d0924b05c9c8b8884185e3f6777b34c7c0a
parent0acdc227cbee39edbbb32f0188c20bfde427d820 (diff)
downloadchromium_src-41db456ecd6e5b6264a1db5f43a67d50ba3a2837.zip
chromium_src-41db456ecd6e5b6264a1db5f43a67d50ba3a2837.tar.gz
chromium_src-41db456ecd6e5b6264a1db5f43a67d50ba3a2837.tar.bz2
Attempt to fix leak in extensions (no Purify here).
TBR=beng Review URL: http://codereview.chromium.org/115165 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15726 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/extensions/extension.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension.cc b/chrome/browser/extensions/extension.cc
index e1533db6..33c9f49 100644
--- a/chrome/browser/extensions/extension.cc
+++ b/chrome/browser/extensions/extension.cc
@@ -522,7 +522,7 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_id,
}
is_theme_ = true;
- theme_images_ = new DictionaryValue;
+ theme_images_ = NULL;
DictionaryValue* images_value;
if (theme_value->GetDictionary(kThemeImagesKey, &images_value)) {
// Validate that the images are all strings
@@ -538,7 +538,7 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_id,
theme_images_ = static_cast<DictionaryValue*>(images_value->DeepCopy());
}
- theme_colors_ = new DictionaryValue;
+ theme_colors_ = NULL;
DictionaryValue* colors_value;
if (theme_value->GetDictionary(kThemeColorsKey, &colors_value)) {
// Validate that the colors are all three-item lists
@@ -560,7 +560,7 @@ bool Extension::InitFromValue(const DictionaryValue& source, bool require_id,
theme_colors_ = static_cast<DictionaryValue*>(colors_value->DeepCopy());
}
- theme_tints_ = new DictionaryValue;
+ theme_tints_ = NULL;
DictionaryValue* tints_value;
if (theme_value->GetDictionary(kThemeTintsKey, &tints_value)) {
// Validate that the tints are all reals.