Created
April 14, 2017 11:20
-
-
Save anonymous/cf72d9bb66ad4c672397307bc7b4f48d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ui_act.c b/src/ui_act.c | |
index e1dbfc0..ee43809 100644 | |
--- a/src/ui_act.c | |
+++ b/src/ui_act.c | |
@@ -240,11 +240,13 @@ BarUiActCallback(BarUiActDeleteStation) { | |
/* drain playlist */ | |
PianoDestroyPlaylist (PianoListNextP (app->playlist)); | |
app->playlist->head.next = NULL; | |
+ selSong = NULL; | |
} | |
app->nextStation = NULL; | |
/* XXX: usually we shoudn’t touch cur*, but DELETE_STATION destroys | |
* station struct */ | |
app->curStation = NULL; | |
+ selStation = NULL; | |
} | |
BarUiActDefaultEventcmd ("stationdelete"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment