mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
Prevent memory leak
This commit is contained in:
parent
3490c3dbc5
commit
238de4aa57
@ -1114,7 +1114,8 @@ static void xmb_set_thumbnail_content(void *data, char *s, size_t len)
|
||||
xmb_handle_t *xmb = (xmb_handle_t*)data;
|
||||
if (!xmb)
|
||||
return;
|
||||
|
||||
if (xmb->thumbnail_content && !string_is_empty(xmb->thumbnail_content))
|
||||
free(xmb->thumbnail_content);
|
||||
xmb->thumbnail_content = strdup(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user