From: Jonathan Neuschäfer Date: Mon, 22 Aug 2011 08:11:06 +0000 (+0200) Subject: screen_lyrics: prevent a double free/use after free X-Git-Tag: release-0.20~100 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e52f36dd83cc444a3b371c8c58507bef07a82361;p=ncmpc.git screen_lyrics: prevent a double free/use after free And a memory leak. --- diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 0819f91..a71b932 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -77,7 +77,7 @@ screen_lyrics_abort(void) if (current.title != NULL) { g_free(current.title); - current.artist = NULL; + current.title = NULL; } if (current.song != NULL) {