Fixed memory leak when using in Spotify Mode.