feat: readded free of words_select_zones
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Lilian1024
2024-12-08 01:07:29 +01:00
parent 0e895a6983
commit 50a4a43e33

View File

@ -64,10 +64,10 @@ void unload_selection_menu(void)
EZ_list_clear((EZ_list*)selection_menu_objects[14]);
/*for (size_t i = 0; i < words_nb; i++)
for (size_t i = 0; i < words_nb; i++)
{
free(words_select_zones[i]);
}*/
}
words_nb = 0;
@ -92,10 +92,10 @@ void home_button_action1(EZ_button* tmp)
if (loaded_list)
{
/*for (size_t i = 0; i < words_nb; i++) //free words select zones
for (size_t i = 0; i < words_nb; i++) //free words select zones
{
free(words_select_zones[i]);
}*/
}
loaded_list = 0;
}
@ -113,10 +113,10 @@ void clear_button_action(EZ_button* tmp)
if (!loaded_list)
return;
/*for (size_t i = 0; i < words_nb; i++)
for (size_t i = 0; i < words_nb; i++)
{
free(words_select_zones[i]);
}*/
}
auto_split_words = -1;
@ -429,10 +429,10 @@ void button_action_switch_result(EZ_button* tmp)
if (loaded_list)
{
/*for (size_t i = 0; i < words_nb; i++) //free words select zones
for (size_t i = 0; i < words_nb; i++) //free words select zones
{
free(words_select_zones[i]);
}*/
}
loaded_list = 0;
words_nb = 0;