mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Fix memleak
This commit is contained in:
parent
401b93baa9
commit
171e274b9a
@ -299,6 +299,8 @@ void Menu::setText(const char **messages, int *submenu_defaults)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Free the old stuff */
|
/* Free the old stuff */
|
||||||
|
for (i = 0; i < this->n_entries; i++)
|
||||||
|
free((void*)this->pp_msgs[i]);
|
||||||
this->n_submenus = 0;
|
this->n_submenus = 0;
|
||||||
free(this->p_submenus);
|
free(this->p_submenus);
|
||||||
free(this->pp_msgs);
|
free(this->pp_msgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user