diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 1 | ||||
| -rw-r--r-- | src/ui.c | 2 | 
2 files changed, 3 insertions, 0 deletions
| @@ -301,6 +301,7 @@ static void BarMainLoop (BarApp_t *app) {  			if (app->playlist != NULL) {  				PianoSong_t *histsong = app->playlist;  				app->playlist = app->playlist->next; +				histsong->next = NULL;  				BarUiHistoryPrepend (app, histsong);  			}  			if (app->playlist == NULL) { @@ -894,6 +894,8 @@ void BarUiHistoryPrepend (BarApp_t *app, PianoSong_t *song) {  				PianoDestroyPlaylist (delSong);  			}  		} +	} else { +		PianoDestroyPlaylist (song);  	}  } | 
