summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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':