From 182255cac806e6a3609af76382a3cade0ce04350 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 1 Jan 2024 16:33:12 +0100 Subject: [PATCH] [spotify] Fix double free on logout or exit Fixes #1706 --- src/library/spotify_webapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/library/spotify_webapi.c b/src/library/spotify_webapi.c index ce0de017..16c901dc 100644 --- a/src/library/spotify_webapi.c +++ b/src/library/spotify_webapi.c @@ -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