mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-13 07:05:12 +01:00
Zero number of entries as well to avoid crashes on free
This commit is contained in:
parent
55064b61cf
commit
5841aa35a3
@ -308,6 +308,7 @@ void Menu::setText(const char **messages, int *submenu_defaults)
|
||||
/* Empty messages are allowed */
|
||||
this->p_submenus = NULL;
|
||||
this->pp_msgs = NULL;
|
||||
this->n_entries = 0;
|
||||
if (!messages)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user