Skip to content

Commit

Permalink
Fix potential crash in StatusControl
Browse files Browse the repository at this point in the history
  • Loading branch information
WarmUpTill committed Jul 2, 2024
1 parent a7dfad3 commit a70642c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/status-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ void StatusControl::SetStarted()
_button->setText(
obs_module_text("AdvSceneSwitcher.generalTab.status.stop"));
_status->setText(obs_module_text("AdvSceneSwitcher.status.active"));
_pulse->deleteLater();
if (_pulse) {
_pulse->deleteLater();
}
SetStatusStyleSheet(false);
_setToStopped = false;
}
Expand Down

0 comments on commit a70642c

Please sign in to comment.