From: ehofman Date: Fri, 30 Dec 2005 09:34:29 +0000 (+0000) Subject: Olaf Flebbe: Make sure the model gets deleted when it's not referenced anymore. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=713ddd05dd78420f6775ec792c5b392053dd5dad;p=flightgear.git Olaf Flebbe: Make sure the model gets deleted when it's not referenced anymore. --- diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index 4b128e1c1..84f22ebf1 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -62,7 +62,7 @@ FGAIManager::~FGAIManager() { ModelVecIterator i = loadedModels.begin(); while (i != loadedModels.end()) { - i->getModelId()->deRef(); + ssgDeRefDelete(i->getModelId()); ++i; } }