author | Max Kellermann <max@duempel.org> | |
Fri, 18 Sep 2009 09:30:49 +0000 (11:30 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 18 Sep 2009 09:30:49 +0000 (11:30 +0200) | ||
commit | fb116ef0ad73c9e3c0b7ebc99fef03d98580a99b | |
tree | 3e1df7d61812baf4836e8b2eb2250d75ba6bec0f | tree | snapshot |
parent | 5b4b59854182c37116738ee22784f6d003219596 | commit | diff |
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.
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 | diff | blob | history | |
src/screen_song.c | diff | blob | history |