common/playlist: add missing playlist_dir clear

Fixes: https://github.com/mpv-player/mpv/pull/14555#issuecomment-2282759582
This commit is contained in:
Kacper Michajłow 2024-08-11 16:59:57 +02:00
parent 9978cb821d
commit e3f426aa4a
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ void playlist_clear(struct playlist *pl)
pl->current_was_replaced = false;
pl->playlist_completed = false;
pl->playlist_started = false;
TA_FREEP(&pl->playlist_dir);
}
void playlist_clear_except_current(struct playlist *pl)