mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #7753 from Robyt3/Client-Assertion-Handler-Crash-Fix
Fix crash in assertion handler after client/graphics destroyed
This commit is contained in:
commit
022cae6f20
|
@ -4303,6 +4303,8 @@ int main(int argc, const char **argv)
|
|||
pKernel->RegisterInterface(pClient, false);
|
||||
pClient->RegisterInterfaces();
|
||||
CleanerFunctions.emplace([pKernel, pClient]() {
|
||||
// Ensure that the assert handler doesn't use the client/graphics after they've been destroyed
|
||||
dbg_assert_set_handler(nullptr);
|
||||
pKernel->Shutdown();
|
||||
delete pKernel;
|
||||
delete pClient;
|
||||
|
|
Loading…
Reference in a new issue