summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mem_entry_impl.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-27 05:25:30 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-27 05:25:30 +0000
commit9c972f5024021bf4e3e9de1091bb430048abef97 (patch)
tree711b0fd86f1387ea94f9a9ce425f72ee9191416b /net/disk_cache/mem_entry_impl.cc
parentdca3212a3573dc555bf64db9354911f0e77875c4 (diff)
downloadchromium_src-9c972f5024021bf4e3e9de1091bb430048abef97.zip
chromium_src-9c972f5024021bf4e3e9de1091bb430048abef97.tar.gz
chromium_src-9c972f5024021bf4e3e9de1091bb430048abef97.tar.bz2
Fix DiskCacheEntryTest.MemoryOnlyDoomSparseEntry
BUG=12258 TEST=DiskCacheEntryTest.MemoryOnlyDoomSparseEntry The sequence that caused this test to break was to doom to the entry while it is still opened. Since closing the parent entry only delete itself and then child entries are not cleaned up. This is corrected by using InternalDoom() for destruction. Review URL: http://codereview.chromium.org/174592 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_entry_impl.cc')
-rw-r--r--net/disk_cache/mem_entry_impl.cc2
1 files changed, 1 insertions, 1 deletions
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() {