diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 01:47:01 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-05 01:47:01 +0000 |
commit | 4a052f2209adf8ae18793d06006dc06eb31e52ee (patch) | |
tree | b1fb0fa491fdb2e472ec6cba63ac710d7f15bf35 /media | |
parent | 91fa49e706cbb796d6eaa1f6d5c95cc7b277db58 (diff) | |
download | chromium_src-4a052f2209adf8ae18793d06006dc06eb31e52ee.zip chromium_src-4a052f2209adf8ae18793d06006dc06eb31e52ee.tar.gz chromium_src-4a052f2209adf8ae18793d06006dc06eb31e52ee.tar.bz2 |
Fix for gcc build break
Review URL: http://codereview.chromium.org/13157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/media_format.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/media/base/media_format.cc b/media/base/media_format.cc index c675a73..289ae0a 100644 --- a/media/base/media_format.cc +++ b/media/base/media_format.cc @@ -75,9 +75,12 @@ bool MediaFormat::Contains(const std::wstring& key) const { } void MediaFormat::Clear() { - for (ValueMap::iterator iter(value_map_.begin()); - iter != value_map_.end(); iter = value_map_.erase(iter)) + ValueMap::iterator iter(value_map_.begin()); + while (iter != value_map_.end()) { delete iter->second; + value_map_.erase(iter); + iter = value_map_.begin(); + } } void MediaFormat::SetAsBoolean(const std::wstring& key, bool in_value) { |