Fix memory leak when switching providers within a playlist

[Fixes #79305128 #79031288]