mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Fix more memory leaks
This commit is contained in:
parent
b28536ba16
commit
04bc2fef8c
@ -4176,6 +4176,8 @@ bool menu_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
|||||||
ret = true;
|
ret = true;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
if (info.exts && !string_is_empty(info.exts))
|
||||||
|
free(info.exts);
|
||||||
if (info.path && !string_is_empty(info.path))
|
if (info.path && !string_is_empty(info.path))
|
||||||
free(info.path);
|
free(info.path);
|
||||||
if (info.label && !string_is_empty(info.label))
|
if (info.label && !string_is_empty(info.label))
|
||||||
@ -4184,6 +4186,8 @@ end:
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
if (info.exts && !string_is_empty(info.exts))
|
||||||
|
free(info.exts);
|
||||||
if (info.path && !string_is_empty(info.path))
|
if (info.path && !string_is_empty(info.path))
|
||||||
free(info.path);
|
free(info.path);
|
||||||
if (info.label && !string_is_empty(info.label))
|
if (info.label && !string_is_empty(info.label))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user