Index: ios/web/test/web_int_test.mm |
diff --git a/ios/web/test/web_int_test.mm b/ios/web/test/web_int_test.mm |
index 8d5160b8840bf5b47382a5ab24f11017288fc004..cbc9812514222aef8aa3048aa396c9f61e27cacc 100644 |
--- a/ios/web/test/web_int_test.mm |
+++ b/ios/web/test/web_int_test.mm |
@@ -50,6 +50,7 @@ WebIntTest::WebIntTest() {} |
WebIntTest::~WebIntTest() {} |
void WebIntTest::SetUp() { |
+ rootPool_ = [[NSAutoreleasePool alloc] init]; |
WebTest::SetUp(); |
// Start the http server. |
@@ -84,6 +85,8 @@ void WebIntTest::TearDown() { |
EXPECT_FALSE(server.IsRunning()); |
WebTest::TearDown(); |
+ [rootPool_ release]; |
+ rootPool_ = nil; |
} |
id WebIntTest::ExecuteJavaScript(NSString* script) { |