Skip to content

Commit

Permalink
Don't attach to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Apr 12, 2020
1 parent 51440a6 commit 12d9ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spotify/spotify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ QVector<Album> Spotify::newReleases()

void Spotify::requestCurrentPlayback()
{
auto context = new QObject(this);
auto context = new QObject();
Spotify::connect(this, &Spotify::got, context, [this, context](const QJsonDocument &json) {
delete context;
emit gotPlayback(Playback(json.object()));
Expand Down

0 comments on commit 12d9ce2

Please sign in to comment.