gfx/tests/gfxTestCocoaHelper.mm
author Michal Novotny <michal.novotny@gmail.com>
Fri, 04 Jan 2013 00:27:04 +0100
changeset 123097 cddc8be15e62676b51f29001b2281779b01255cc
parent 47362 2e6221ac851892637fcb941b372d0daa4523b2e9
permissions -rw-r--r--
Bug 725993 - Remove usage of STORE_ON_DISK_AS_FILE flag in media cache, 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;
}