| 1 |
/* fre:ac - free audio converter |
| 2 |
* Copyright (C) 2001-2016 Robert Kausch <[email protected]> |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU General Public License as |
| 6 |
* published by the Free Software Foundation, either version 2 of |
| 7 |
* the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR |
| 10 |
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED |
| 11 |
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ |
| 12 |
|
| 13 |
#include <Cocoa/Cocoa.h> |
| 14 |
|
| 15 |
#include <support/autorelease.h> |
| 16 |
|
| 17 |
freac::AutoRelease::AutoRelease() |
| 18 |
{ |
| 19 |
/* Create autorelease pool. |
| 20 |
*/ |
| 21 |
privateData = [[NSAutoreleasePool alloc] init]; |
| 22 |
} |
| 23 |
|
| 24 |
freac::AutoRelease::~AutoRelease() |
| 25 |
{ |
| 26 |
/* Release autorelease pool. |
| 27 |
*/ |
| 28 |
[(NSAutoreleasePool *) privateData release]; |
| 29 |
} |