Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: net/disk_cache/mem_entry_impl.cc

Issue 174592: Fix DiskCacheEntryTest.MemoryOnlyDoomSparseEntry (Closed)
Patch Set: cache only Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/entry_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mem_entry_impl.cc
diff --git a/net/disk_cache/mem_entry_impl.cc b/net/disk_cache/mem_entry_impl.cc
index bf6359d136cee1d0389869246428d5826323ca1c..7b154467f0cd5fc644f51cfa4e0753dc903bb566 100644
--- a/net/disk_cache/mem_entry_impl.cc
+++ b/net/disk_cache/mem_entry_impl.cc
@@ -69,7 +69,7 @@ void MemEntryImpl::Close() {
ref_count_--;
DCHECK(ref_count_ >= 0);
if (!ref_count_ && doomed_)
- delete this;
+ InternalDoom();
}
void MemEntryImpl::Open() {
« no previous file with comments | « net/disk_cache/entry_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698