diff options
author | nshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-23 22:30:58 +0000 |
---|---|---|
committer | nshkrob@chromium.org <nshkrob@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-23 22:30:58 +0000 |
commit | 76c18f6a7ef490e3195dda28b70f6ed4aca56cab (patch) | |
tree | e8b215cea2c007e2d6e58647c39c40d38b72022e | |
parent | 0f4fe844bd7ca7f0fa512a2e786d9debb2831526 (diff) | |
download | chromium_src-76c18f6a7ef490e3195dda28b70f6ed4aca56cab.zip chromium_src-76c18f6a7ef490e3195dda28b70f6ed4aca56cab.tar.gz chromium_src-76c18f6a7ef490e3195dda28b70f6ed4aca56cab.tar.bz2 |
Fix memory leak.
BUG=none
TEST=heapcheck
Review URL: http://codereview.chromium.org/3014032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53536 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/history/top_sites.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc index d22fc6b..348ab7b 100644 --- a/chrome/browser/history/top_sites.cc +++ b/chrome/browser/history/top_sites.cc @@ -654,8 +654,7 @@ void TopSites::AddBlacklistedURL(const GURL& url) { } bool TopSites::IsBlacklisted(const GURL& url) { - Value* dummy = Value::CreateNullValue(); - bool result = blacklist_->GetWithoutPathExpansion(GetURLHash(url), &dummy); + bool result = blacklist_->HasKey(GetURLHash(url)); return result; } |