mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 09:41:14 +00:00
Cleanups
This commit is contained in:
parent
8af2559b2a
commit
e1a0139164
@ -4176,22 +4176,12 @@ bool menu_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
|||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (info.exts && !string_is_empty(info.exts))
|
menu_displaylist_info_free(&info);
|
||||||
free(info.exts);
|
|
||||||
if (info.path && !string_is_empty(info.path))
|
|
||||||
free(info.path);
|
|
||||||
if (info.label && !string_is_empty(info.label))
|
|
||||||
free(info.label);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (info.exts && !string_is_empty(info.exts))
|
menu_displaylist_info_free(&info);
|
||||||
free(info.exts);
|
|
||||||
if (info.path && !string_is_empty(info.path))
|
|
||||||
free(info.path);
|
|
||||||
if (info.label && !string_is_empty(info.label))
|
|
||||||
free(info.label);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user