Skip to content

Instantly share code, notes, and snippets.

Created April 14, 2017 11:20
Show Gist options
  • Save anonymous/cf72d9bb66ad4c672397307bc7b4f48d to your computer and use it in GitHub Desktop.
Save anonymous/cf72d9bb66ad4c672397307bc7b4f48d to your computer and use it in GitHub Desktop.
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