summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 04:09:39 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 04:09:39 +0000
commitdfdf8e1b99545a57720047bdee4c933105ea9db9 (patch)
treea2c084f725c41f9fdd228a17638e4a6128194613
parentc02c1c80e0a04940ea1d576e5b0268b57984c004 (diff)
downloadchromium_src-dfdf8e1b99545a57720047bdee4c933105ea9db9.zip
chromium_src-dfdf8e1b99545a57720047bdee4c933105ea9db9.tar.gz
chromium_src-dfdf8e1b99545a57720047bdee4c933105ea9db9.tar.bz2
Http cache: Fix a leak on RemovePendingCallbackFromNewEntry
BUG=none TEST=none TBR=eroman Review URL: http://codereview.chromium.org/548039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36222 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/http/http_cache.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index e2d0e2c..c99caca 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -675,6 +675,7 @@ bool HttpCache::RemovePendingCallbackFromNewEntry(NewEntry* entry,
WorkItemList::iterator it = pending_queue.begin();
for (; it != pending_queue.end(); ++it) {
if ((*it)->Matches(cb)) {
+ delete *it;
pending_queue.erase(it);
return true;
}