Skip to content

Commit

Permalink
Merge pull request #609 from frankplow/fix-secondarycontrols-nullderef
Browse files Browse the repository at this point in the history
StatisticsUIHandler: Don't dereference secondaryControlsWidget if NULL
  • Loading branch information
ChristianFeldmann authored Dec 19, 2024
2 parents 5663b08 + 175434b commit 12a61c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YUViewLib/src/statistics/StatisticUIHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ void StatisticUIHandler::onSecondaryStatisticsControlChanged()

void StatisticUIHandler::deleteSecondaryStatisticsHandlerControls()
{
secondaryControlsWidget->deleteLater();
if (secondaryControlsWidget)
secondaryControlsWidget->deleteLater();
ui2.clear();
itemNameCheckBoxes[1].clear();
itemOpacitySliders[1].clear();
Expand Down

0 comments on commit 12a61c1

Please sign in to comment.