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
@@ -127,6 +127,7 @@ func (a *ArtistPage) Save() SavedPage {
if a.tracklistCtr != nil {
tl := a.tracklistCtr.Objects[0].(*widgets.Tracklist)
s.trackSort = tl.Sorting()
tl.Clear()
a.pool.Release(util.WidgetTypeTracklist, tl)
}
a.pool.Release(util.WidgetTypeArtistPageHeader, a.header)