mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
267 B
Plaintext
20 lines
267 B
Plaintext
|
|
||
|
#import <Cocoa/Cocoa.h>
|
||
|
|
||
|
#include "gfxTestCocoaHelper.h"
|
||
|
|
||
|
static NSAutoreleasePool *sPool = NULL;
|
||
|
|
||
|
void
|
||
|
CocoaPoolInit() {
|
||
|
if (sPool)
|
||
|
[sPool release];
|
||
|
sPool = [[NSAutoreleasePool alloc] init];
|
||
|
}
|
||
|
|
||
|
void
|
||
|
CocoaPoolRelease() {
|
||
|
[sPool release];
|
||
|
sPool = NULL;
|
||
|
}
|