From 634a8370942b95af5168080498071144ff59562f Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 27 Sep 2022 15:44:02 -0400 Subject: [PATCH] 2022-09-27 Fred Gleason * Fixed a regression in rdairplay(1) that caused a segfault when unloading a log. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rdlogplay.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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";