mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
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:
parent
951bed6206
commit
abd9704d26
1 changed files with 5 additions and 1 deletions
|
@ -662,6 +662,10 @@ void menu_pre ()
|
|||
|
||||
void menu_post ()
|
||||
{
|
||||
[autorelease_pool release];
|
||||
//FIXME called too often by the engine?
|
||||
AutoreleasePool *ar;
|
||||
|
||||
ar = autorelease_pool;
|
||||
autorelease_pool = nil;
|
||||
[ar release];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue