[spotify] Fix double free on logout or exit

Fixes #1706
This commit is contained in:
ejurgensen 2024-01-01 16:33:12 +01:00
parent 0b46ac53ed
commit 182255cac8

View File

@ -213,8 +213,7 @@ credentials_clear(struct spotify_credentials *credentials)
free(credentials->user_country);
free(credentials->user);
credentials->token_expires_in = 0;
credentials->token_time_requested = 0;
memset(credentials, 0, sizeof(struct spotify_credentials));
}
static void