summaryrefslogtreecommitdiffstats
path: root/base/values.cc
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 12:05:56 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-11 12:05:56 +0000
commit377f253295342d2f2b6e28039608655912a2990c (patch)
tree15049dabb1bef3ffa8f4ab534d5afbe653ce7605 /base/values.cc
parent2a88e4292e47835ef042cde4418890844665bb1a (diff)
downloadchromium_src-377f253295342d2f2b6e28039608655912a2990c.zip
chromium_src-377f253295342d2f2b6e28039608655912a2990c.tar.gz
chromium_src-377f253295342d2f2b6e28039608655912a2990c.tar.bz2
Fix memory leak in PrefMetricsService
BUG=266569 TBR=markusheintz@chromium.org Review URL: https://codereview.chromium.org/23903040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r--base/values.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/values.cc b/base/values.cc
index 76e73a0..2d3984e 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -755,7 +755,7 @@ bool DictionaryValue::RemoveWithoutPathExpansion(const std::string& key,
return true;
}
-DictionaryValue* DictionaryValue::DeepCopyWithoutEmptyChildren() {
+DictionaryValue* DictionaryValue::DeepCopyWithoutEmptyChildren() const {
Value* copy = CopyWithoutEmptyChildren(this);
return copy ? static_cast<DictionaryValue*>(copy) : new DictionaryValue;
}