Fix for a memory corruption.
As identified by http://crbug.com/90867, we sometimes leaked render view hosts by overwriting them in the swapped out map of the render view host manager. This should not happen (two different hosts with the same instance id) and will eventually be fixed, but in the mean time this CL recovers from that problem and prevent the leak, and also the memory corruptions that were caused by it. The memory corruption were caused by the fact that the leaked host would not be told when their delegate_ would die and might try to call them post-mortem. BUG=90867 TEST=RenderViewHostManagerTest.LeakingRenderViewHosts Review URL: http://codereview.chromium.org/7725005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98249 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment