Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5211 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Sep 21, 2005, 2:21:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind mem-leak-recovered

Location:
trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

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

    r5115 r5211  
    350350    delete this->normals;
    351351  if (this->triangles)
    352     delete this->triangles;
     352    delete[] this->triangles;
    353353
    354354  this->vertices = NULL;
    355355  this->vTexture = NULL;
    356356  this->normals = NULL;
    357   this->triangles = NULL; this->triangleCount = 0;
     357  this->triangles = NULL;
     358  this->triangleCount = 0;
    358359}
    359360
  • trunk/src/lib/graphics/importer/texture.cc

    r4836 r5211  
    4545Texture::~Texture()
    4646{
    47   if (this->texture)
     47  if (this->texture != 0)
    4848    glDeleteTextures(1, &this->texture);
    4949}
Note: See TracChangeset for help on using the changeset viewer.