From http://code.google.com/p/chromium/issues/detail?id=84774.
Created attachment 98324 [details] Patch
This looks same. http://code.google.com/p/chromium/issues/detail?id=86808 I suspect this change might cause another ASAN error, but this looks obvious leak. So I'd like to see what happens with this change.
Comment on attachment 98324 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98324&action=review > Tools/DumpRenderTree/chromium/TestShell.cpp:153 > + delete m_webViewHost; Raw new&delete are not good. We had better make m_webViewHost OwnPtr<WebViewHost>, and TestShell::createNewWindow() should return PassOwnPtr<WebViewHost>.
Comment on attachment 98324 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98324&action=review >> Tools/DumpRenderTree/chromium/TestShell.cpp:153 >> + delete m_webViewHost; > > Raw new&delete are not good. > We had better make m_webViewHost OwnPtr<WebViewHost>, and TestShell::createNewWindow() should return PassOwnPtr<WebViewHost>. Changing createNewWindow() might be complex. So, just making m_webViewHost OwnPtr<WebViewHost> is enough. Note that we can't do closeWindow(m_webViewHost).
Created attachment 98467 [details] Patch
Kent-san, thank you for taking a look! > Changing createNewWindow() might be complex. So, just making m_webViewHost OwnPtr<WebViewHost> is enough. > Note that we can't do closeWindow(m_webViewHost). Sure. I did it on the updated patch. > Changing createNewWindow() might be complex. So, just making m_webViewHost OwnPtr<WebViewHost> is enough. > Note that we can't do closeWindow(m_webViewHost). Ah, I didn't notice that... Fortunately, there is no such call at this time.
Comment on attachment 98467 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98467&action=review > Tools/DumpRenderTree/chromium/TestShell.cpp:153 > + m_webViewHost.clear(); No need to call clear() explicitly. ~OwnPtr() is called automatically.
Committed http://trac.webkit.org/changeset/89663 .
Thanks you for updating this, Tony. It looks I forgot to do it.