Olaf Flebbe: Make sure the model gets deleted when it's not referenced anymore.
This commit is contained in:
parent
d4f56af242
commit
713ddd05dd
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ FGAIManager::~FGAIManager() {
|
||||||
ModelVecIterator i = loadedModels.begin();
|
ModelVecIterator i = loadedModels.begin();
|
||||||
while (i != loadedModels.end())
|
while (i != loadedModels.end())
|
||||||
{
|
{
|
||||||
i->getModelId()->deRef();
|
ssgDeRefDelete(i->getModelId());
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue