summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_service.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 01:06:49 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-15 01:06:49 +0000
commit10b7e6ad1e743f23eb10809ff5267a414a51c0a5 (patch)
treee8ce0597ea9f04e8abfe2b7656ac1a166dc35be8 /chrome/browser/sync/profile_sync_service.cc
parent7ffb5a935f254bb1cf86bbc969aec267137a68a1 (diff)
downloadchromium_src-10b7e6ad1e743f23eb10809ff5267a414a51c0a5.zip
chromium_src-10b7e6ad1e743f23eb10809ff5267a414a51c0a5.tar.gz
chromium_src-10b7e6ad1e743f23eb10809ff5267a414a51c0a5.tar.bz2
Fix a leak added in r34510. We need to delete old ChangeProcessors.
TBR=albertb Review URL: http://codereview.chromium.org/503008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_service.cc')
-rw-r--r--chrome/browser/sync/profile_sync_service.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index be160fd..fc5abdd 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -65,6 +65,7 @@ ProfileSyncService::~ProfileSyncService() {
void ProfileSyncService::set_change_processor(
browser_sync::ChangeProcessor* change_processor) {
+ STLDeleteElements(&change_processors_);
change_processors_.clear();
change_processors_.insert(change_processor);
}