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
@@ -117,6 +117,7 @@ func (a *AlbumPage) Save() SavedPage {
s.sort = a.tracklist.Sorting()
a.header.page = nil
a.pool.Release(util.WidgetTypeAlbumPageHeader, a.header)
a.tracklist.Clear()
a.pool.Release(util.WidgetTypeTracklist, a.tracklist)
return &s
}