From 3e5f3e94a4b61b5aebca2e6142699067068cd599 Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Fri, 12 Jun 2009 05:05:41 +0000 Subject: 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 --- chrome/browser/extensions/extensions_service.cc | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- cgit v1.1