diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-22 17:28:17 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-22 17:28:17 +0000 |
commit | 913506f0841bf0acf139b4599a47d84d486a47da (patch) | |
tree | 8aab12fbc1a6c2a63ecef4391b671b357d75deea /webkit | |
parent | bddfd1b97a4735e73f1f782088c0f8bc682898b5 (diff) | |
download | chromium_src-913506f0841bf0acf139b4599a47d84d486a47da.zip chromium_src-913506f0841bf0acf139b4599a47d84d486a47da.tar.gz chromium_src-913506f0841bf0acf139b4599a47d84d486a47da.tar.bz2 |
Scope some autorelease pools.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6895019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/tools/test_shell/test_shell_mac.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm index 840bbdd..f8ad17c 100644 --- a/webkit/tools/test_shell/test_shell_mac.mm +++ b/webkit/tools/test_shell/test_shell_mac.mm @@ -16,6 +16,7 @@ #include "base/file_util.h" #include "base/logging.h" #include "base/mac/mac_util.h" +#include "base/mac/scoped_nsautorelease_pool.h" #include "base/memory/memory_debug.h" #include "base/message_loop.h" #include "base/path_service.h" @@ -395,9 +396,9 @@ void TestShell::TestFinished() { } - (void)run:(id)ignore { - NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; + base::mac::ScopedNSAutoreleasePool scoped_pool; - // check for debugger, just bail if so. We don't want the timeouts hitting + // Check for debugger, just bail if so. We don't want the timeouts hitting // when we're trying to track down an issue. if (base::debug::BeingDebugged()) return; @@ -422,8 +423,6 @@ void TestShell::TestFinished() { fflush(stdout); abort(); } - - [pool release]; } @end |