Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5227 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Sep 23, 2005, 11:24:18 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: LoadParam had some major memory-leak… fixed them :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r5209 r5227  
    8282{
    8383  // delete the displayable Buffers
    84   for (int i = 0; i < this->bufferDisplaySize; i++)
     84  for (unsigned int i = 0; i < this->bufferDisplaySize; i++)
    8585    delete this->bufferText[i];
    8686  delete[] this->bufferText;
     
    106106
    107107  ShellBuffer::getInstance()->getBufferIterator()->lastElement();
    108   for (int i = 0; i < this->bufferDisplaySize; i++)
     108  for (unsigned int i = 0; i < this->bufferDisplaySize; i++)
    109109    this->bufferText[i]->setText(ShellBuffer::getInstance()->getBufferIterator()->prevElement(), true);
    110110}
Note: See TracChangeset for help on using the changeset viewer.