mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
Merge pull request #5336 from heuripedes/master
(playlist.c) Fix clear/free loop conditionals
This commit is contained in:
commit
1205c2f438
@ -424,7 +424,7 @@ void playlist_free(playlist_t *playlist)
|
||||
|
||||
playlist->conf_path = NULL;
|
||||
|
||||
for (i = 0; i < playlist->cap; i++)
|
||||
for (i = 0; i < playlist->size; i++)
|
||||
{
|
||||
struct playlist_entry *entry = &playlist->entries[i];
|
||||
|
||||
@ -450,7 +450,7 @@ void playlist_clear(playlist_t *playlist)
|
||||
if (!playlist)
|
||||
return;
|
||||
|
||||
for (i = 0; i < playlist->cap; i++)
|
||||
for (i = 0; i < playlist->size; i++)
|
||||
{
|
||||
struct playlist_entry *entry = &playlist->entries[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user