gfx/thebes/test/gfxTestCocoaHelper.mm
author Shawn Wilsher <me@shawnwilsher.com>
Thu, 03 Feb 2011 11:54:18 -0800
branchGECKO192a1_20090806_RELBRANCH
changeset 61885 ad21235547c04c56a971b0cb4a8631d965f213f0
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
closing old branch that is no longer used per bug 611030


#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;
}