mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Valgrind fixes
This commit is contained in:
parent
69a6eae9cf
commit
99e906239e
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user