gfx/tests/gfxTestCocoaHelper.mm
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Sat, 26 Feb 2011 13:19:57 -0500
changeset 63140 aca8013c8cff17c12a7859b6d00855d2b6648f34
parent 47362 2e6221ac851892637fcb941b372d0daa4523b2e9
permissions -rw-r--r--
Bug 631659 - Push Firebug Test Runner to m-c. Patch 2.3. r=ctalbert, a=NPOTB


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