aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen_lyrics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index c2c780723..cfc658939 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -79,8 +79,6 @@ screen_lyrics_clear(void)
assert(current.loader == NULL ||
lyrics_result(current.loader) == LYRICS_SUCCESS);
- current.song = NULL;
-
for (i = 0; i < current.lines->len; ++i)
g_free(g_ptr_array_index(current.lines, i));
@@ -162,6 +160,8 @@ screen_lyrics_load(struct mpd_song *song)
screen_lyrics_abort();
screen_lyrics_clear();
+ current.song = song;
+
strfsong(buffer, sizeof(buffer), "%artist%", song);
current.artist = g_strdup(buffer);