Avoid over-releasing the autorelease pool.

It seems that the engine menu code must be calling menu_post too often, but
I don't feel like fixing it just yet.
This commit is contained in:
Bill Currie 2012-11-20 14:53:06 +09:00
parent 951bed6206
commit abd9704d26

View file

@ -662,6 +662,10 @@ void menu_pre ()
void menu_post () void menu_post ()
{ {
[autorelease_pool release]; //FIXME called too often by the engine?
AutoreleasePool *ar;
ar = autorelease_pool;
autorelease_pool = nil; autorelease_pool = nil;
[ar release];
} }