summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-02 19:07:52 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-02 19:07:52 +0200
commite3c2af78adaef60de935883bac1155b0e75d4ae1 (patch)
treee67b37adac35546961e130dd6eb78e546dff786b /src
parente0c0ac2c337bfa32675131c7a7d3626301874250 (diff)
downloadpianobar-windows-e3c2af78adaef60de935883bac1155b0e75d4ae1.tar.gz
pianobar-windows-e3c2af78adaef60de935883bac1155b0e75d4ae1.tar.bz2
pianobar-windows-e3c2af78adaef60de935883bac1155b0e75d4ae1.zip
client: Fix song banning
The playlist was freed and curSong set to NULL even if the ban request failed.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
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':