gfx/tests/gfxTestCocoaHelper.mm
author Bill McCloskey <wmccloskey@mozilla.com>
Tue, 15 Feb 2011 16:53:40 -0800
changeset 62781 5e18294f6a9b294d93df1330f5211b9a80b47006
parent 47362 2e6221ac851892637fcb941b372d0daa4523b2e9
permissions -rw-r--r--
Bug 634436 - Fix bogus profiler assertion in tracer (r=gal)


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