1
0
Fork 0

Olaf Flebbe: Make sure the model gets deleted when it's not referenced anymore.

This commit is contained in:
ehofman 2005-12-30 09:34:29 +00:00
parent d4f56af242
commit 713ddd05dd

View file

@ -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;
} }
} }