From e3c2af78adaef60de935883bac1155b0e75d4ae1 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 2 Jul 2008 19:07:52 +0200 Subject: client: Fix song banning The playlist was freed and curSong set to NULL even if the ban request failed. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index e4b8457..8a96129 100644 --- a/src/main.c +++ b/src/main.c @@ -409,12 +409,12 @@ int main (int argc, char **argv) { PIANO_RATE_BAN) == PIANO_RET_OK) { BarUiMsg ("Ok.\n"); player.doQuit = 1; + /* pandora does this too, I think */ + PianoDestroyPlaylist (&ph); + curSong = NULL; } else { BarUiMsg ("Error.\n"); } - /* pandora does this too, I think */ - PianoDestroyPlaylist (&ph); - curSong = NULL; break; case 'c': -- cgit v1.2.3