diff options
Diffstat (limited to 'webkit/tools/test_shell/mac/main.mm')
-rw-r--r-- | webkit/tools/test_shell/mac/main.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/mac/main.mm b/webkit/tools/test_shell/mac/main.mm index f0148fd..ffd3c38 100644 --- a/webkit/tools/test_shell/mac/main.mm +++ b/webkit/tools/test_shell/mac/main.mm @@ -69,12 +69,13 @@ static void SetCurrentTestName(char* path) { // purify leak-test results. MessageLoop::current()->RunAllPending(); + TestShell::ShutdownTestShell(); + + // get rid of the stats table last, V8 relies on it StatsTable* table = StatsTable::current(); StatsTable::set_current(NULL); delete table; - delete shell_; - TestShell::ShutdownTestShell(); TestShell::CleanupLogging(); [super dealloc]; @@ -225,7 +226,7 @@ int main(const int argc, const char *argv[]) { CommandLine::LooseValueIterator iter = parsed_command_line.GetLooseValuesBegin(); uri = *iter; - } + } TestShell* shell; if (TestShell::CreateNewWindow(uri, &shell)) { |