clear tracks from tracklists before releasing to widget pool

This commit is contained in:
Drew Weymouth
2023-07-10 13:51:09 -07:00
parent a86a81f1e6
commit f75a5e27a5
6 changed files with 6 additions and 0 deletions
+1
View File
@@ -116,6 +116,7 @@ func (a *PlaylistPage) Save() SavedPage {
p := a.playlistPageState
p.trackSort = a.tracklist.Sorting()
p.widgetPool.Release(util.WidgetTypePlaylistPageHeader, a.header)
a.tracklist.Clear()
p.widgetPool.Release(util.WidgetTypeTracklist, a.tracklist)
return &p
}