We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d4a53 commit b59f414Copy full SHA for b59f414
Client/gui/CGUI_Impl.cpp
@@ -23,7 +23,11 @@ void CGUI_Impl::DestroyElementRecursive(CGUIElement* pElement)
23
24
if (auto* pImpl = dynamic_cast<CGUIElement_Impl*>(pElement))
25
{
26
- DestroyGuiWindowRecursive(pImpl->GetWindow());
+ CEGUI::Window* pWindow = pImpl->GetWindow();
27
+ if (pWindow)
28
+ DestroyGuiWindowRecursive(pWindow);
29
+ else
30
+ delete pElement;
31
return;
32
}
33
0 commit comments