|
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/scoped_nsautorelease_pool.h" | |
6 | |
7 #import <Foundation/Foundation.h> | |
8 | |
9 namespace base { | |
10 | |
11 ScopedNSAutoreleasePool::ScopedNSAutoreleasePool() | |
12 : autorelease_pool_([[NSAutoreleasePool alloc] init]) { | |
13 } | |
14 | |
15 ScopedNSAutoreleasePool::~ScopedNSAutoreleasePool() { | |
16 [autorelease_pool_ drain]; | |
17 } | |
18 | |
19 } // namespace base | |
OLD | NEW |