summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}