mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed some segfaults that could occur during emergency shutdown
This commit is contained in:
parent
c8661e5186
commit
d7f3ee7f17
|
@ -387,6 +387,9 @@ namespace Utils
|
|||
LOG(LogError) << "Critical - Performing emergency shutdown...";
|
||||
Scripting::fireEvent("quit");
|
||||
|
||||
while (Window::getInstance()->getGuiStackSize() > 1 &&
|
||||
Window::getInstance()->peekGui() != nullptr)
|
||||
delete Window::getInstance()->peekGui();
|
||||
Window::getInstance()->deinit();
|
||||
Log::flush();
|
||||
|
||||
|
|
Loading…
Reference in a new issue