mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
55e5eab157
QList.removeAll calls the destructor for the elements in the list. This caused `req` to be initialized in `SpotifyClient::TryPlaybackAgain()`. Therefore, spotify method calls might crash because the pointers are invalid. This commit moves the `pending_playback_requests_.removeAll` to the end of the method to ensure `req` is accessible all the time.