gfx/thebes/test/gfxTestCocoaHelper.mm
author benjamin@smedbergs.us
Mon, 02 Apr 2007 09:09:05 -0700
changeset 263 c3e0a6bb84ddac5a90a640b3811f2535074dd7d4
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Bug 374921 - link error in gfxSurfaceRefCountTest when libxul is enabled, r=roc


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