Fixed some latent bugs in unix/menu.c.

This commit is contained in:
Pietro Gagliardi 2015-05-08 14:14:05 -04:00
parent 85ca2a0901
commit d43c8b5584
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,8 @@ void uninitMenus(void)
struct menuItem *item;
guint i, j;
if (menus == NULL)
return;
for (i = 0; i < menus->len; i++) {
m = g_array_index(menus, struct menu *, i);
g_free(m->name);