Fixed some latent bugs in unix/menu.c.
This commit is contained in:
parent
85ca2a0901
commit
d43c8b5584
|
@ -353,6 +353,8 @@ void uninitMenus(void)
|
||||||
struct menuItem *item;
|
struct menuItem *item;
|
||||||
guint i, j;
|
guint i, j;
|
||||||
|
|
||||||
|
if (menus == NULL)
|
||||||
|
return;
|
||||||
for (i = 0; i < menus->len; i++) {
|
for (i = 0; i < menus->len; i++) {
|
||||||
m = g_array_index(menus, struct menu *, i);
|
m = g_array_index(menus, struct menu *, i);
|
||||||
g_free(m->name);
|
g_free(m->name);
|
||||||
|
|
Loading…
Reference in New Issue