| Index: chrome/browser/policy/policy_map.cc
|
| diff --git a/chrome/browser/policy/policy_map.cc b/chrome/browser/policy/policy_map.cc
|
| index 25869e6a0e6d413129ca4b2590ff009fa1b3e743..70be9e5b56762122fbce9857c635f34be998fe30 100644
|
| --- a/chrome/browser/policy/policy_map.cc
|
| +++ b/chrome/browser/policy/policy_map.cc
|
| @@ -122,10 +122,12 @@ void PolicyMap::GetDifferingKeys(const PolicyMap& other,
|
| void PolicyMap::FilterLevel(PolicyLevel level) {
|
| PolicyMapType::iterator iter(map_.begin());
|
| while (iter != map_.end()) {
|
| - if (iter->second.level != level)
|
| + if (iter->second.level != level) {
|
| + delete iter->second.value;
|
| map_.erase(iter++);
|
| - else
|
| + } else {
|
| ++iter;
|
| + }
|
| }
|
| }
|
|
|
|
|