menu_list_destroy - check if 'list' is non-NULL before calling file_list_free

This commit is contained in:
twinaphex 2014-12-31 20:07:42 +01:00
parent e0a364786c
commit 3ee3e5a1a5

View File

@ -35,6 +35,7 @@ void menu_list_destroy(file_list_t *list)
}
end:
if (list)
file_list_free(list);
}