Code

screen_lyrics, screen_song: duplicate "next_song"
authorMax Kellermann <max@duempel.org>
Fri, 18 Sep 2009 09:30:49 +0000 (11:30 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 18 Sep 2009 09:30:49 +0000 (11:30 +0200)
commitfb116ef0ad73c9e3c0b7ebc99fef03d98580a99b
tree3e1df7d61812baf4836e8b2eb2250d75ba6bec0f
parent5b4b59854182c37116738ee22784f6d003219596
screen_lyrics, screen_song: duplicate "next_song"

The screen_X_switch() function calls screen_switch.  As a side effect
of the previous screen being closed, the next_song pointer may become
invalid, which causes memory corruption.  Let's duplicate the song
when assigning it to next_song.
src/screen_lyrics.c
src/screen_song.c