(svn r15330) -Fix [FS#2597]: leaking of Squirrel when using circular references (by enabling the GC).
This commit is contained in:
@@ -296,6 +296,11 @@ void AIInstance::GameLoop()
|
||||
}
|
||||
}
|
||||
|
||||
void AIInstance::CollectGarbage()
|
||||
{
|
||||
if (this->is_started && !this->is_dead) this->engine->CollectGarbage();
|
||||
}
|
||||
|
||||
/* static */ void AIInstance::DoCommandReturn(AIInstance *instance)
|
||||
{
|
||||
instance->engine->InsertResult(AIObject::GetLastCommandRes());
|
||||
|
Reference in New Issue
Block a user