1
0
mirror of https://github.com/libretro/RetroArch synced 2025-02-20 15:40:44 +00:00

Merge pull request from lioncash/free

playlist: early exit if NULL is passed to content_playlist_free_entry
This commit is contained in:
Twinaphex 2014-09-15 03:27:16 +02:00
commit 32291bb799

@ -61,6 +61,9 @@ void content_playlist_get_index(content_playlist_t *playlist,
static void content_playlist_free_entry(
struct content_playlist_entry *entry)
{
if (!entry)
return;
if (entry->path)
free(entry->path);
entry->path = NULL;