toolkit/xre/MacAutoreleasePool.mm
author Masayuki Nakano <masayuki@d-toybox.com>
Sat, 29 Aug 2015 08:58:31 +0900
changeset 294245 389f60113c0c037c562eb46f4dfa23feab74a20e
parent 106838 b5c4b792f3f2a047e3517472d72842a76afb77cd
child 514912 0e3b5fe32d113a4a857bf7b948921f531cca8a8e
permissions -rw-r--r--
Bug 895274 part.28 Rename NS_MOUSE_ENTER_WIDGET to eMouseEnterIntoWidget r=smaug

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "MacAutoreleasePool.h"
#include "nsDebug.h"

#import <Foundation/Foundation.h>

using mozilla::MacAutoreleasePool;

MacAutoreleasePool::MacAutoreleasePool()
{
  mPool = [[NSAutoreleasePool alloc] init];
  NS_ASSERTION(mPool != nullptr, "failed to create pool, objects will leak");
}

MacAutoreleasePool::~MacAutoreleasePool() {
  [mPool release];
}