also delete Kernel in map_version

This commit is contained in:
HMH 2017-07-21 20:01:39 +02:00
parent bfc5700314
commit 1f7d216f28

View file

@ -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;
}