diff options
Diffstat (limited to 'testing/platform_test_mac.mm')
-rw-r--r-- | testing/platform_test_mac.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/platform_test_mac.mm b/testing/platform_test_mac.mm index e4aaeab..bd22cd5 100644 --- a/testing/platform_test_mac.mm +++ b/testing/platform_test_mac.mm @@ -6,10 +6,10 @@ #import <Foundation/Foundation.h> -void PlatformTest::SetUp() { - pool_ = [[NSAutoreleasePool alloc] init]; +PlatformTest::PlatformTest() + : pool_([[NSAutoreleasePool alloc] init]) { } -void PlatformTest::TearDown() { - [pool_ drain]; +PlatformTest::~PlatformTest() { + [pool_ release]; } |