Fix Coverity resource leak warning
This commit is contained in:
parent
4b6c4e5a6a
commit
f36dfda328
|
@ -875,7 +875,11 @@ static void xmb_render_messagebox_internal(
|
||||||
unsigned height = video_info->height;
|
unsigned height = video_info->height;
|
||||||
struct string_list *list = string_split(message, "\n");
|
struct string_list *list = string_split(message, "\n");
|
||||||
if (!list || !xmb)
|
if (!list || !xmb)
|
||||||
|
{
|
||||||
|
if (list)
|
||||||
|
string_list_free(list);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (list->elems == 0)
|
if (list->elems == 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue