mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Destroy engine before graphics (fixes #6857)
This commit is contained in:
parent
53fad543c0
commit
265eb69284
|
@ -4694,7 +4694,13 @@ int main(int argc, const char **argv)
|
|||
{
|
||||
bool RegisterFail = false;
|
||||
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(pEngine);
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(pEngine, false);
|
||||
|
||||
CleanerFunctions.push([pEngine]() {
|
||||
// Has to be before destroying graphics so that skin download thread can finish
|
||||
delete pEngine;
|
||||
});
|
||||
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(pConsole);
|
||||
RegisterFail = RegisterFail || !pKernel->RegisterInterface(pConfigManager);
|
||||
|
||||
|
|
Loading…
Reference in a new issue