mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
also delete Kernel in map_version
This commit is contained in:
parent
bfc5700314
commit
1f7d216f28
|
@ -51,7 +51,10 @@ int main(int argc, const char **argv) // ignore_convention
|
|||
RegisterFail |= !pKernel->RegisterInterface(s_pEngineMap);
|
||||
|
||||
if(RegisterFail)
|
||||
{
|
||||
delete pKernel;
|
||||
return -1;
|
||||
}
|
||||
|
||||
s_File = s_pStorage->OpenFile("map_version.txt", IOFLAG_WRITE, 1);
|
||||
if(s_File)
|
||||
|
@ -62,5 +65,6 @@ int main(int argc, const char **argv) // ignore_convention
|
|||
io_close(s_File);
|
||||
}
|
||||
|
||||
delete pKernel;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue