aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes/MCAutoreleasePoolMac.mm
blob: 4fcc435c4d783483296902f0dc45d4b26d463aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  MCAutoreleasePoolMac.mm
//  mailcore2
//
//  Created by DINH Viêt Hoà on 5/4/13.
//  Copyright (c) 2013 MailCore. All rights reserved.
//

#include "MCAutoreleasePool.h"

#import <Foundation/Foundation.h>

using namespace mailcore;

void * AutoreleasePool::createAppleAutoreleasePool()
{
    return [[NSAutoreleasePool alloc] init];
}

void AutoreleasePool::releaseAppleAutoreleasePool(void * appleAutoreleasePool)
{
    [(NSAutoreleasePool *) appleAutoreleasePool release];
}