gfx/tests/gfxTestCocoaHelper.mm
author Gregory Szorc <gps@mozilla.com>
Wed, 28 Jan 2015 13:37:00 -0800
branchGECKO140_2012060421_RELBRANCH
changeset 120194 435e31508f3c76fd2038e910012cb946b515e31c
parent 47362 2e6221ac851892637fcb941b372d0daa4523b2e9
permissions -rw-r--r--
Close old release branch GECKO140_2012060421_RELBRANCH


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