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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user