diff --git a/lib/CModHandler.cpp b/lib/CModHandler.cpp index 78a4f9e5e..efe27e3ec 100644 --- a/lib/CModHandler.cpp +++ b/lib/CModHandler.cpp @@ -30,6 +30,10 @@ CIdentifierStorage::CIdentifierStorage(): { } +CIdentifierStorage::~CIdentifierStorage() +{ +} + void CIdentifierStorage::checkIdentifier(std::string & ID) { if (boost::algorithm::ends_with(ID, ".")) @@ -558,6 +562,10 @@ CModHandler::CModHandler() } +CModHandler::~CModHandler() +{ +} + void CModHandler::loadConfigFromFile (std::string name) { std::string paths; diff --git a/lib/CModHandler.h b/lib/CModHandler.h index 02acf33ec..1b908cbb4 100644 --- a/lib/CModHandler.h +++ b/lib/CModHandler.h @@ -69,6 +69,7 @@ class CIdentifierStorage std::vector getPossibleIdentifiers(const ObjectCallback & callback); public: CIdentifierStorage(); + virtual ~CIdentifierStorage(); /// request identifier for specific object name. /// Function callback will be called during ID resolution phase of loading void requestIdentifier(std::string scope, std::string type, std::string name, const std::function & callback); @@ -291,6 +292,7 @@ public: } modules; CModHandler(); + virtual ~CModHandler(); std::string normalizeIdentifier(const std::string & scope, const std::string & remoteScope, const std::string & identifier) const; diff --git a/lib/VCMI_Lib.cpp b/lib/VCMI_Lib.cpp index 8aaae68c9..3d3baaafe 100644 --- a/lib/VCMI_Lib.cpp +++ b/lib/VCMI_Lib.cpp @@ -68,7 +68,7 @@ void LibClasses::loadFilesystem() CResourceHandler::load("config/filesystem.json"); logGlobal->infoStream()<<"\t Data loading: "<infoStream()<<"\tMod handler: "<loadMods();