diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/test_shell/test_shell_main.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc index b2f9830..f3a051d 100644 --- a/webkit/tools/test_shell/test_shell_main.cc +++ b/webkit/tools/test_shell/test_shell_main.cc @@ -380,7 +380,13 @@ int main(int argc, char* argv[]) { shell->CallJSGC(); shell->CallJSGC(); - if (shell) delete shell; + if (shell) { + // When we finish the last test, cleanup the LayoutTestController. + // It may have references to not-yet-cleaned up windows. By + // cleaning up here we help purify reports. + shell->ResetTestController(); + delete shell; + } } else { MessageLoop::current()->Run(); } |