Code

screen_lyrics: clarify some code
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sun, 21 Aug 2011 21:40:53 +0000 (23:40 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 29 Aug 2011 20:48:31 +0000 (22:48 +0200)
src/screen_lyrics.c

index a71b932b6544d46b7a5b7b16496aa771b19f9dcb..0e21536b2f0c5ea2fa643d23a04ef556686f9d99 100644 (file)
@@ -278,9 +278,10 @@ lyrics_open(struct mpdclient *c)
                    mpd_song_get_uri(current.song)) != 0))
                screen_lyrics_load(next_song_c);
 
-       if (next_song != NULL)
+       if (next_song != NULL) {
                mpd_song_free(next_song);
-       next_song = NULL;
+               next_song = NULL;
+       }
 }
 
 static void