core/playlists/library: Remove tracks from artist playlist when deleting
Otherwise we could leave artist playlists with invalid pointers. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
21718c4179
commit
ae851ab4ea
|
@ -1,4 +1,5 @@
|
|||
6.4.19:
|
||||
- Remove deleted tracks from artist playlists
|
||||
- File chooser selects user's music directory
|
||||
- Remove deleted tracks from artist playlists
|
||||
|
||||
|
|
|
@ -168,8 +168,10 @@ static bool pl_library_delete(const gchar *name)
|
|||
if (!library)
|
||||
return false;
|
||||
|
||||
queue_for_each(&playlist->pl_queue, &it)
|
||||
queue_for_each(&playlist->pl_queue, &it) {
|
||||
pl_system_delete_track(queue_iter_val(&it));
|
||||
pl_artist_delete_track(queue_iter_val(&it));
|
||||
}
|
||||
__lib_pl_free(playlist);
|
||||
|
||||
track_remove_all(library);
|
||||
|
|
Loading…
Reference in New Issue