Code

screen_lyrics: prevent a double free/use after free
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 22 Aug 2011 08:11:06 +0000 (10:11 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 22 Aug 2011 08:13:02 +0000 (10:13 +0200)
And a memory leak.

src/screen_lyrics.c

index 0819f91424b9d6917cbefff5ed78e29ff996165e..a71b932b6544d46b7a5b7b16496aa771b19f9dcb 100644 (file)
@@ -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) {