Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5212 in orxonox.OLD for trunk/src/lib/graphics/render2D


Ignore:
Timestamp:
Sep 21, 2005, 8:07:51 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some little errors corrected via Valgrind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5211 r5212  
    467467void Element2D::removeChild2D (Element2D* child)
    468468{
    469   child->remove2D();
    470   this->children->remove(child);
    471   child->parent = NULL;
     469  if (child != NULL)
     470  {
     471    child->remove2D();
     472    this->children->remove(child);
     473    child->parent = NULL;
     474  }
    472475}
    473476
Note: See TracChangeset for help on using the changeset viewer.