summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/disk_cache/entry_unittest.cc2
-rw-r--r--net/disk_cache/mem_entry_impl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc
index 7f8d53d..1c81995 100644
--- a/net/disk_cache/entry_unittest.cc
+++ b/net/disk_cache/entry_unittest.cc
@@ -1202,7 +1202,7 @@ TEST_F(DiskCacheEntryTest, DoomSparseEntry) {
DoomSparseEntry();
}
-TEST_F(DiskCacheEntryTest, DISABLED_MemoryOnlyDoomSparseEntry) {
+TEST_F(DiskCacheEntryTest, MemoryOnlyDoomSparseEntry) {
SetMemoryOnlyMode();
InitCache();
DoomSparseEntry();
diff --git a/net/disk_cache/mem_entry_impl.cc b/net/disk_cache/mem_entry_impl.cc
index bf6359d..7b15446 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() {