Revision 137b8eb88e98fa15c12c50deba329cb31d9edcec authored by Jeff Muizelaar on 29 May 2012, 19:40:50 UTC, committed by Jeff Muizelaar on 29 May 2012, 19:40:50 UTC
1 parent 53abb7e
Raw File
gfxTestCocoaHelper.mm

#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;
}
back to top