Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5210 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Sep 21, 2005, 12:01:25 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: other minor valgrid found error-fixes

Location:
trunk/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/obb_tree_node.cc

    r5115 r5210  
    175175  {
    176176    /* fist compute all the convex hull face/facelets and centroids */
    177     for(int i = 0; i < length; i+=3)          /* FIX-ME-QUICK: hops of 3, array indiscontinuity*/
     177    for(int i = 0; i+3 < length ; i+=3)          /* FIX-ME-QUICK: hops of 3, array indiscontinuity*/
    178178    {
    179179      p = verticesList[i];
  • trunk/src/lib/event/event_handler.cc

    r5093 r5210  
    3636  this->setClassID(CL_EVENT_HANDLER, "EventHandler");
    3737
    38   this->listeners = new EventListener**[ES_NUMBER];
    39   for(int i = 0; i < ES_NUMBER; ++i)
    40     this->listeners[i] = new EventListener*[EV_NUMBER];
    41 
    4238  /* now initialize them all to zero */
    43   for(int i = 0; i < ES_NUMBER; ++i)
    44     {
    45       for(int j = 0; j < EV_NUMBER; ++j)
     39  for(int i = 0; i < ES_NUMBER; i++)
     40    {
     41      for(int j = 0; j < EV_NUMBER; j++)
    4642        {
    4743          this->listeners[i][j] = NULL;
  • trunk/src/lib/event/event_handler.h

    r5093 r5210  
    4545
    4646 private:
    47   static EventHandler*       singletonRef;                  //!< the singleton reference
     47  static EventHandler*       singletonRef;                    //!< the singleton reference
    4848
    49   EventListener***           listeners;                    //!< a list of registered listeners
    50   elState                    state;                         //!< the state of the event handlder
    51   KeyMapper*                 keyMapper;                     //!< reference to the key mapper
     49  EventListener*             listeners[ES_NUMBER][EV_NUMBER]; //!< a list of registered listeners
     50  elState                    state;                           //!< the state of the event handlder
     51  KeyMapper*                 keyMapper;                       //!< reference to the key mapper
    5252};
    5353
  • trunk/src/lib/shell/shell_buffer.cc

    r5206 r5210  
    9494  while (charElem != NULL)
    9595  {
    96     delete charElem;
     96    delete[] charElem;
    9797    charElem = bufferIterator->nextElement();
    9898  }
     
    180180    if (this->buffer->getSize() > this->bufferSize)
    181181    {
    182       delete this->buffer->firstElement();
     182      delete[] this->buffer->firstElement();
    183183      this->buffer->remove(this->buffer->firstElement());
    184184    }
Note: See TracChangeset for help on using the changeset viewer.