Don't abort if NSAutoreleasePool is not found.

Fixes #17
main
David Chisnall 10 years ago
parent 2693c02626
commit 6de70135e8

@ -220,7 +220,7 @@ static inline void initAutorelease(void)
{ {
if (Nil == AutoreleasePool) if (Nil == AutoreleasePool)
{ {
AutoreleasePool = objc_getRequiredClass("NSAutoreleasePool"); AutoreleasePool = objc_getClass("NSAutoreleasePool");
if (Nil == AutoreleasePool) if (Nil == AutoreleasePool)
{ {
useARCAutoreleasePool = YES; useARCAutoreleasePool = YES;

Loading…
Cancel
Save