Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1251


Ignore:
Timestamp:
May 8, 2008, 3:07:07 PM (17 years ago)
Author:
scheusso
Message:

memory free problem

Location:
code/branches/network3/src/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/Client.cc

    r1248 r1251  
    237237          COUT(3) << "Problem adding partial gamestate to queue" << std::endl;
    238238        // now delete it to save memory
    239         delete [] gs->data;
     239        delete[] gs->data;
    240240        delete gs;
    241241      }
  • code/branches/network3/src/network/GameStateManager.cc

    r1248 r1251  
    261261    }
    262262   
     263    delete[] state->data;
     264    delete state;
    263265    return true;
    264266  }
     
    417419    gamestate->complete = a->complete;
    418420
    419     delete[] a->data; //delete compressed data
    420     delete a; //we do not need the old (struct) gamestate anymore
    421421
    422422    return gamestate;
  • code/branches/network3/src/network/PacketDecoder.cc

    r1248 r1251  
    239239    COUT(3) << "PacketDecoder-process: processing Gamestate" << std::endl;
    240240    //printGamestate( state );
    241     delete[] state->data;
    242     delete state;
     241//     delete[] state->data;
     242//     delete state;
    243243  }
    244244
Note: See TracChangeset for help on using the changeset viewer.