Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7732 in orxonox.OLD for trunk/src/lib/graphics/importer/model.cc


Ignore:
Timestamp:
May 19, 2006, 4:32:27 PM (19 years ago)
Author:
patrick
Message:

orxonox: removed a memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/model.cc

    r7194 r7732  
    4545*/
    4646Model::~Model()
    47 { }
     47{
     48  if( this->pModelInfo.pVertices != NULL)
     49    delete [] this->pModelInfo.pVertices;
     50
     51  if( this->pModelInfo.pTriangles != NULL)
     52    delete [] this->pModelInfo.pTriangles;
     53
     54  if( this->pModelInfo.pNormals != NULL)
     55    delete [] this->pModelInfo.pNormals;
     56
     57  if( this->pModelInfo.pTexCoor != NULL)
     58    delete [] this->pModelInfo.pTexCoor;
     59}
    4860
    4961
Note: See TracChangeset for help on using the changeset viewer.