Skip to content

Commit

Permalink
Merge pull request #447 from gdt050579/444-crash-when-closing-one-win…
Browse files Browse the repository at this point in the history
…dow-after-opening-several-and-closing-one-of-them

Closes #444. Fixed crash due to MouseOverControl pointer still poitin…
  • Loading branch information
rzaharia authored Mar 21, 2024
2 parents 69a4dca + 35b2719 commit 4c25599
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AppCUI/src/Controls/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,7 @@ void Window::RemoveMe()
return;
// all good -> I am a top level window --> remove me
app->AppDesktop->RemoveControl(this);
app->MouseOverControl = nullptr;
app->CheckIfAppShouldClose();
}
bool Window::OnEvent(Reference<Control>, Event eventType, int)
Expand Down

0 comments on commit 4c25599

Please sign in to comment.