From 42690f334f250464ad8e92f3ecd5e73373f40835 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 12 Mar 2015 13:45:23 +0100 Subject: [PATCH] (Menu) Don't run 'file_list_free' if handle is NULL --- menu/menu_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu/menu_list.c b/menu/menu_list.c index 79ce72c182..104219a1b1 100644 --- a/menu/menu_list.c +++ b/menu/menu_list.c @@ -153,7 +153,8 @@ void menu_list_destroy(file_list_t *list) } end: - file_list_free(list); + if (list) + file_list_free(list); } void menu_list_free(menu_list_t *menu_list)