mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
playlist: early exit if NULL is passed to content_playlist_free_entry
This commit is contained in:
parent
850b13ecba
commit
7d6ebf75bd
@ -61,6 +61,9 @@ void content_playlist_get_index(content_playlist_t *playlist,
|
|||||||
static void content_playlist_free_entry(
|
static void content_playlist_free_entry(
|
||||||
struct content_playlist_entry *entry)
|
struct content_playlist_entry *entry)
|
||||||
{
|
{
|
||||||
|
if (!entry)
|
||||||
|
return;
|
||||||
|
|
||||||
if (entry->path)
|
if (entry->path)
|
||||||
free(entry->path);
|
free(entry->path);
|
||||||
entry->path = NULL;
|
entry->path = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user