summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_request_infobar_delegate.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 17:27:10 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-10 17:27:10 +0000
commit69f14effeda7c97d2a783faf39c8ab5674fee2d0 (patch)
treef4b76927ff3befaa1916a573f87d79bc11cbfddc /chrome/browser/download/download_request_infobar_delegate.cc
parent0770fc4cfe70b0f65a4bbc620685bca726faf1e9 (diff)
downloadchromium_src-69f14effeda7c97d2a783faf39c8ab5674fee2d0.zip
chromium_src-69f14effeda7c97d2a783faf39c8ab5674fee2d0.tar.gz
chromium_src-69f14effeda7c97d2a783faf39c8ab5674fee2d0.tar.bz2
Fix a leak. Remove suppression for the leak and update bug number for unrelated suppression.
BUG=72288,72547 TEST=none Review URL: http://codereview.chromium.org/6478011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74447 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_request_infobar_delegate.cc')
-rw-r--r--chrome/browser/download/download_request_infobar_delegate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/download/download_request_infobar_delegate.cc b/chrome/browser/download/download_request_infobar_delegate.cc
index 4d39ad3..34f0f02 100644
--- a/chrome/browser/download/download_request_infobar_delegate.cc
+++ b/chrome/browser/download/download_request_infobar_delegate.cc
@@ -23,8 +23,7 @@ DownloadRequestInfoBarDelegate::~DownloadRequestInfoBarDelegate() {
void DownloadRequestInfoBarDelegate::InfoBarClosed() {
if (host_)
host_->Cancel();
- // This will delete us.
- ConfirmInfoBarDelegate::InfoBarClosed();
+ delete this;
}
SkBitmap* DownloadRequestInfoBarDelegate::GetIcon() const {