diff --git a/ChangeLog b/ChangeLog index 8ce75c06..85eca5f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23399,3 +23399,6 @@ 2022-09-27 Fred Gleason * Fixed a regression in rdairplay(1) that caused the audio cue transport buttons to be continuously grayed-out. +2022-09-27 Fred Gleason + * Fixed a regression in rdairplay(1) that caused a segfault when + unloading a log. diff --git a/lib/rdlogplay.cpp b/lib/rdlogplay.cpp index 9ef438bf..7ceea661 100644 --- a/lib/rdlogplay.cpp +++ b/lib/rdlogplay.cpp @@ -3229,7 +3229,7 @@ void RDLogPlay::UpdateRestartData() } else { line=nextLine(); - if(line>=0) { + if((line>=0)&&(logLine(line)!=NULL)) { id=logLine(line)->id(); } running="N";