Skip to content

[GEN][ZH] Fix undefined behavior in WindowLayout::destroyWindows#878

Merged
xezon merged 3 commits into
TheSuperHackers:mainfrom
Caball009:fix-destroyWindows
May 18, 2025
Merged

[GEN][ZH] Fix undefined behavior in WindowLayout::destroyWindows#878
xezon merged 3 commits into
TheSuperHackers:mainfrom
Caball009:fix-destroyWindows

Conversation

@Caball009

@Caball009 Caball009 commented May 18, 2025

Copy link
Copy Markdown

Same issue as: #870

void WindowLayout::destroyWindows( void )
{
if (this == NULL)
{
return;
}

This pr removes the explicit if (this == NULL) check in WindowLayout::destroyWindows, and added nullptr checks at the call sites where needed.

@xezon xezon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@xezon xezon added this to the Stability fixes milestone May 18, 2025
@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour Fix Is fixing something, but is not user facing Stability Concerns stability of the runtime labels May 18, 2025
@xezon xezon merged commit ce9d3d7 into TheSuperHackers:main May 18, 2025
@Caball009 Caball009 deleted the fix-destroyWindows branch May 18, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix Is fixing something, but is not user facing Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker Stability Concerns stability of the runtime ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants