diff options
| author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-02 19:07:52 +0200 | 
|---|---|---|
| committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-02 19:07:52 +0200 | 
| commit | e3c2af78adaef60de935883bac1155b0e75d4ae1 (patch) | |
| tree | e67b37adac35546961e130dd6eb78e546dff786b | |
| parent | e0c0ac2c337bfa32675131c7a7d3626301874250 (diff) | |
| download | pianobar-e3c2af78adaef60de935883bac1155b0e75d4ae1.tar.gz pianobar-e3c2af78adaef60de935883bac1155b0e75d4ae1.tar.bz2 pianobar-e3c2af78adaef60de935883bac1155b0e75d4ae1.zip | |
client: Fix song banning
The playlist was freed and curSong set to NULL even if the ban request failed.
| -rw-r--r-- | src/main.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -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': | 
