summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/web_cache_manager.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 21:02:58 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 21:02:58 +0000
commit79dc62e3412845f97c91db5792d0049783e4c7c3 (patch)
tree567c2b2cba1c881a7cbcf1eb0103c944ea409ff2 /chrome/browser/renderer_host/web_cache_manager.cc
parentf5cdaff1456dfd7a5ad2240115285010a32f7fc1 (diff)
downloadchromium_src-79dc62e3412845f97c91db5792d0049783e4c7c3.zip
chromium_src-79dc62e3412845f97c91db5792d0049783e4c7c3.tar.gz
chromium_src-79dc62e3412845f97c91db5792d0049783e4c7c3.tar.bz2
Fix memory leaks when a renderer crashes and the user refreshes. Also fix memory leak every time a renderer process goes away.
Review URL: http://codereview.chromium.org/115492 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/web_cache_manager.cc')
-rw-r--r--chrome/browser/renderer_host/web_cache_manager.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/web_cache_manager.cc b/chrome/browser/renderer_host/web_cache_manager.cc
index 91b740e..4615e2b 100644
--- a/chrome/browser/renderer_host/web_cache_manager.cc
+++ b/chrome/browser/renderer_host/web_cache_manager.cc
@@ -85,9 +85,6 @@ void WebCacheManager::Add(int renderer_id) {
}
void WebCacheManager::Remove(int renderer_id) {
- DCHECK(active_renderers_.count(renderer_id) > 0 ||
- inactive_renderers_.count(renderer_id) > 0);
-
// Erase all knowledge of this renderer
active_renderers_.erase(renderer_id);
inactive_renderers_.erase(renderer_id);