Flutter Engine
The Flutter Engine
AutoreleasePool.mm
Go to the documentation of this file.
1/*
2 * Copyright 2019 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
10
11#import <Foundation/NSAutoreleasePool.h>
12
14 fPool = (void*)[[NSAutoreleasePool alloc] init];
15}
16
18 [(NSAutoreleasePool*)fPool release];
19 fPool = nullptr;
20}
21
23 [(NSAutoreleasePool*)fPool drain];
24 fPool = (void*)[[NSAutoreleasePool alloc] init];
25}
~AutoreleasePool()=default
static bool init()