mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 15:39:55 +00:00
(XMB) Be safer
This commit is contained in:
parent
00ea9be8fc
commit
638a441530
@ -1039,6 +1039,8 @@ static void xmb_update_savestate_thumbnail_path(void *data, unsigned i)
|
||||
if (!string_is_empty(xmb->savestate_thumbnail_file_path))
|
||||
free(xmb->savestate_thumbnail_file_path);
|
||||
|
||||
if (!string_is_empty(entry.label))
|
||||
{
|
||||
if ( (settings->bools.savestate_thumbnail_enable)
|
||||
&& ((string_is_equal_fast(entry.label, "state_slot", 10))
|
||||
|| (string_is_equal_fast(entry.label, "loadstate", 9))
|
||||
@ -1069,6 +1071,7 @@ static void xmb_update_savestate_thumbnail_path(void *data, unsigned i)
|
||||
|
||||
free(path);
|
||||
}
|
||||
}
|
||||
|
||||
menu_entry_free(&entry);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user