Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5288 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Oct 6, 2005, 11:19:35 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now it should be real save.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine.cc

    r5287 r5288  
    812812TextEngine::~TextEngine ()
    813813{
     814  // first remove all the remaining Texts (if any).
     815  tList<BaseObject>* textList = ClassList::getList(CL_TEXT);
     816  tIterator<BaseObject>* textIterator = textList->getIterator();
     817  Text* text = dynamic_cast<Text*>(textIterator->firstElement());
     818  while( text != NULL)
     819  {
     820    delete text;
     821    text = dynamic_cast<Text*>(textIterator->nextElement());
     822  }
     823  delete textIterator;
     824  PRINT(0)("+---------------------------TE--+\n");
     825
    814826  // delete all remaining fonts (this is done in the ResourceManager)
    815827  tList<BaseObject>* fontList = ClassList::getList(CL_FONT);
Note: See TracChangeset for help on using the changeset viewer.