How to create a NSAutoreleasePool without Objective-C?
Posted
by
fbafelipe
on Stack Overflow
See other posts from Stack Overflow
or by fbafelipe
Published on 2012-06-28T03:09:28Z
Indexed on
2012/06/28
3:16 UTC
Read the original article
Hit count: 218
I have multiplatform game written in C++. In the mac version, even though I do not have any obj-c code, one of the libraries I use seems to be auto-releasing stuff, and I get memory leaks for that, since I did not create a NSAutoreleasePool.
What I want is to be able to create (and destroy) a NSAutoreleasePool without using obj-c code, so I don't need to create a .m file, and change my build scripts just for that. Is that possible? How can that be done?
OBS: Tagged C and C++, because a solution in any of those languages will do.
© Stack Overflow or respective owner