1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-07 02:10:22 +02:00

Server: properly delete ServerMap on interrupted startups

A static mod error (e.g. typo) would abort the initialization but never free ServerMap
This commit is contained in:
SmallJoker
2021-02-05 18:34:25 +01:00
parent 9b64834c6a
commit d287da184c
3 changed files with 9 additions and 1 deletions

View File

@ -547,6 +547,10 @@ private:
// Environment
ServerEnvironment *m_env = nullptr;
// Reference to the server map until ServerEnvironment is initialized
// after that this variable must be a nullptr
ServerMap *m_startup_server_map = nullptr;
// server connection
std::shared_ptr<con::Connection> m_con;