diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 05:05:41 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 05:05:41 +0000 |
commit | 3e5f3e94a4b61b5aebca2e6142699067068cd599 (patch) | |
tree | 454bd20472da3d405e3c335b530eb0f6c16ebf24 | |
parent | e943d666020b7275d7fb70db625b47f69712d3b3 (diff) | |
download | chromium_src-3e5f3e94a4b61b5aebca2e6142699067068cd599.zip chromium_src-3e5f3e94a4b61b5aebca2e6142699067068cd599.tar.gz chromium_src-3e5f3e94a4b61b5aebca2e6142699067068cd599.tar.bz2 |
Fixing memleak found by purify.
This should fix leaks at:
extensions_service.cc:495 and 498
... and since the providers are getting cleaned up, it should take care of:
extensions_service.cc:211
... as well.
TBR=erikkay
TEST=Covered by automated tests.
BUG=None
Review URL: http://codereview.chromium.org/126037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18251 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/extensions/extensions_service.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc index 487d617..bf79e78 100644 --- a/chrome/browser/extensions/extensions_service.cc +++ b/chrome/browser/extensions/extensions_service.cc @@ -1204,6 +1204,8 @@ void ExtensionsServiceBackend::UninstallExtension( } void ExtensionsServiceBackend::ClearProvidersForTesting() { + STLDeleteContainerPairSecondPointers(external_extension_providers_.begin(), + external_extension_providers_.end()); external_extension_providers_.clear(); } |