diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:17:58 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-28 01:17:58 +0000 |
commit | d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d (patch) | |
tree | 4b53df79075f0f8f942c292cd1fc4b064fcf6760 | |
parent | fda9fd39b5c08c8f3067161cd535bce7b67d4e17 (diff) | |
download | chromium_src-d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d.zip chromium_src-d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d.tar.gz chromium_src-d8bc79bfb604f3c10c3cd0bc0e35e0b8ec7b8d7d.tar.bz2 |
Make purify happy by fixing memory leak that shows up during shutdown.
BUG=6528
Review URL: http://codereview.chromium.org/19407
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8780 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/metrics/metrics_service.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc index f89b2a7..5d6159f 100644 --- a/chrome/browser/metrics/metrics_service.cc +++ b/chrome/browser/metrics/metrics_service.cc @@ -349,6 +349,14 @@ MetricsService::MetricsService() MetricsService::~MetricsService() { SetRecording(false); + if (pending_log_) { + delete pending_log_; + pending_log_ = NULL; + } + if (current_log_) { + delete current_log_; + current_log_ = NULL; + } } void MetricsService::SetUserPermitsUpload(bool enabled) { |