diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 11:26:33 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-06 11:26:33 +0000 |
commit | a2f3b6f16f1bdea5e95be1d6e1d0e1b3b94a5df3 (patch) | |
tree | 56a16f907963c1d63476b04261a5611a6b3f80ec /chrome/browser/pref_service.cc | |
parent | ca352454df9a2c6dac0dd5927c92d73d4eee069d (diff) | |
download | chromium_src-a2f3b6f16f1bdea5e95be1d6e1d0e1b3b94a5df3.zip chromium_src-a2f3b6f16f1bdea5e95be1d6e1d0e1b3b94a5df3.tar.gz chromium_src-a2f3b6f16f1bdea5e95be1d6e1d0e1b3b94a5df3.tar.bz2 |
Fix memory leak in policy refresh implementation
TEST=PrefValueStoreTest.*
BUG=51176
Review URL: http://codereview.chromium.org/3031047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/pref_service.cc')
-rw-r--r-- | chrome/browser/pref_service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/pref_service.cc b/chrome/browser/pref_service.cc index fa2d004..24a3f96 100644 --- a/chrome/browser/pref_service.cc +++ b/chrome/browser/pref_service.cc @@ -822,7 +822,7 @@ void PrefService::Observe(NotificationType type, const NotificationSource& source, const NotificationDetails& details) { if (type == NotificationType::POLICY_CHANGED) { - PrefValueStore::AfterRefreshCallback callback = + PrefValueStore::AfterRefreshCallback* callback = NewCallback(this, &PrefService::FireObserversForRefreshedManagedPrefs); // The notification of the policy refresh can come from any thread, |