Changeset 7732 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- May 19, 2006, 4:32:27 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/md2Model.cc
r7221 r7732 125 125 MD2Model::~MD2Model() 126 126 { 127 this->pModelInfo.pVertices = NULL; 128 this->pModelInfo.pNormals = NULL; 129 this->pModelInfo.pTexCoor = NULL; 130 this->pModelInfo.pTriangles = NULL; 131 127 132 ResourceManager::getInstance()->unload(this->data); 128 133 } … … 408 413 delete [] this->pLightNormals; 409 414 delete [] this->pTexCoor; 410 411 415 } 412 416 -
trunk/src/lib/graphics/importer/model.cc
r7194 r7732 45 45 */ 46 46 Model::~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 } 48 60 49 61 -
trunk/src/lib/graphics/importer/static_model.cc
r7711 r7732 185 185 delete (*modMat); 186 186 } 187 188 // mark this stuff as beeing deleted 189 this->pModelInfo.pVertices = NULL; 190 this->pModelInfo.pNormals = NULL; 191 this->pModelInfo.pTexCoor = NULL; 187 192 } 188 193
Note: See TracChangeset
for help on using the changeset viewer.