Valgrind fixes

This commit is contained in:
simon.kagstrom 2010-02-26 11:15:50 +00:00
parent 69a6eae9cf
commit 99e906239e
2 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ Network::Network(const char *remote_host, int port)
this->rle_buf = (Uint8*)malloc(RLE_SIZE);
this->diff_buf = (Uint8*)malloc(DIFF_SIZE);
assert(this->raw_buf && this->rle_buf && this->diff_buf);
this->cur_joystick_data = 0;
/* Go from lower right to upper left */
this->refresh_square = N_SQUARES_W * N_SQUARES_H - 1;

View File

@ -10,6 +10,7 @@ public:
GameInfoBox(Font *font) : Menu(font)
{
this->gi = NULL;
memset(this->year, 0, sizeof(this->year));
memset(this->gi_messages, 0, sizeof(this->gi_messages));
this->setSelectedBackground(NULL, NULL, NULL, NULL, NULL, NULL);
}