- Timestamp:
- Aug 19, 2005, 5:10:35 AM (20 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5078 r5079 46 46 this->maxFPS = 0; 47 47 48 this->geTextCFPS = NULL; 49 this->geTextMaxFPS = NULL; 50 this->geTextMinFPS = NULL; 51 48 52 this->fullscreenFlag = 0; 49 53 } … … 60 64 { 61 65 // delete what has to be deleted here 66 delete this->geTextCFPS; 67 delete this->geTextMaxFPS; 68 delete this->geTextMinFPS; 69 62 70 63 71 delete Render2D::getInstance(); … … 445 453 { 446 454 #ifndef NO_TEXT 447 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 448 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 449 this->geTextCFPS->setPosition2D(5, 5); 455 if (this->geTextCFPS == NULL) 456 { 457 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 458 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 459 this->geTextCFPS->setPosition2D(5, 5); 460 } 461 if (this->geTextMaxFPS == NULL) 462 { 450 463 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 451 464 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 452 465 this->geTextMaxFPS->setPosition2D(5, 35); 466 } 467 if (this->geTextMinFPS == NULL) 468 { 453 469 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 454 470 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 455 471 this->geTextMinFPS->setPosition2D(5, 65); 472 } 456 473 #endif /* NO_TEXT */ 457 474 } -
trunk/src/util/shell.cc
r5078 r5079 59 59 { 60 60 // delete what has to be deleted here 61 tIterator<Text>* textIterator = this->bufferText->getIterator(); 62 Text* textElem = textIterator->nextElement(); 63 64 while (textElem != NULL) 65 { 66 delete textElem; 67 68 textElem = textIterator->nextElement(); 69 } 70 delete textIterator; 71 delete this->bufferText; 61 72 62 73 Shell::singletonRef = NULL; -
trunk/src/util/track/track_manager.cc
r4856 r5079 458 458 delete this->firstTrackElem; 459 459 460 delete this->trackText; 460 461 // the tracknode should be deleted here, but is deleted by pNode: -> null_parent 461 462
Note: See TracChangeset
for help on using the changeset viewer.