Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5230 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Sep 23, 2005, 11:54:03 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some other minor fix for the tList class. It the class is reused although the objects has been discarded, the pointers are reset and this will result in a segfault informing the coder he made some error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/list.h

    r5229 r5230  
    208208  this->first = NULL;
    209209  this->last = NULL;
     210  this->currentEl = NULL;
    210211  this->size = 0;
    211212}
     
    385386template<class T>
    386387    inline tIterator<T>::~tIterator ()
    387 {}
     388{
     389  this->currentEl = NULL;
     390  this->tmpEl = NULL;
     391  this->list = NULL;
     392}
    388393
    389394/**
Note: See TracChangeset for help on using the changeset viewer.