2023-09-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdairplay(1) and rdpanel(1) that could cause a
	segfault when switching user context.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2023-09-25 12:42:06 -04:00
parent 45c0f59421
commit 3a575a4338
2 changed files with 6 additions and 1 deletions

View File

@ -24339,3 +24339,6 @@
* Incremented the package version to 4.0.2int1.
2023-08-09 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.1.0.
2023-09-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdairplay(1) and rdpanel(1) that could cause a
segfault when switching user context.

View File

@ -918,9 +918,11 @@ void RDSoundPanel::UpdateButtonViewport()
for(int i=0;i<panel_button_rows;i++) {
for(int j=0;j<panel_button_columns;j++) {
RDPanelButton *button=panel->panelButton(i,j);
if(panel!=NULL) {
button->setVisible(viewport.contains(button->geometry()));
}
}
}
}