playlist: free filestream before early returning

This commit is contained in:
Brad Parker 2019-01-18 19:03:25 -05:00
parent 79f8b6281f
commit e81ad553ad

View File

@ -834,7 +834,10 @@ static bool playlist_read_file(
/* Empty playlist file */
if (bytes_read == 0)
{
filestream_close(file);
return true;
}
filestream_seek(file, 0, SEEK_SET);