Fix Coverity resource leak warning

This commit is contained in:
twinaphex 2018-01-23 04:29:45 +01:00
parent 4b6c4e5a6a
commit f36dfda328

View File

@ -875,7 +875,11 @@ static void xmb_render_messagebox_internal(
unsigned height = video_info->height;
struct string_list *list = string_split(message, "\n");
if (!list || !xmb)
{
if (list)
string_list_free(list);
return;
}
if (list->elems == 0)
goto end;