Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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
Files:
5 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}
  • trunk/src/lib/graphics/light.cc

    r5156 r5211  
    244244    if (this->lights[i])
    245245      delete lights[i];
    246   delete lights;
     246  delete[] lights;
    247247  LightManager::singletonRef = NULL;
    248248}
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5118 r5211  
    9090  this->parent = NULL;
    9191  this->children = new tList<Element2D>;
     92  this->absDirection = 0.0;
    9293  this->relDirection = 0.0;
    9394  this->bRelCoorChanged = true;
     
    844845NullElement2D::~NullElement2D ()
    845846{
    846   //delete singletonRef;
    847847  NullElement2D::singletonRef = NULL;
    848848}
  • trunk/src/lib/graphics/render2D/element_2d.h

    r5113 r5211  
    193193    Vector                  absCoordinate;      //!< absolute coordinates in the world ( from (0,0,0) )
    194194    float                   relDirection;       //!< direction relative to the parent
    195     float                   absDirection;       //!< absolute direvtion in the world ( from (0,0,1) )
     195    float                   absDirection;       //!< absolute diretion in the world ( from (0,0,1) )
    196196
    197197    Vector                  prevRelCoordinate;  //!< The last Relative Coordinate from the last update-Cycle.
Note: See TracChangeset for help on using the changeset viewer.