From d43c8b5584ece1639bca01f7915255b906893cf8 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 8 May 2015 14:14:05 -0400 Subject: [PATCH] Fixed some latent bugs in unix/menu.c. --- unix/menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/menu.c b/unix/menu.c index 3010cae0..2fb3dc3a 100644 --- a/unix/menu.c +++ b/unix/menu.c @@ -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);