summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-05 00:00:56 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-05 00:00:56 +0000
commit05485be9f0ff3194ace46efaf156dd30441f29df (patch)
tree8aaa5e7fdba476c9d53eb40d4794337de0e29af1
parent8d87fa3837d26f11b1233badbe7ec540d38a686b (diff)
Module: Initialise 'ModuleDLLManager' and 'dying' correctly.
-rw-r--r--src/modulemanager.cpp1
-rw-r--r--src/modules.cpp8
2 files changed, 7 insertions, 2 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index eb40c5971..86edd572f 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -66,7 +66,6 @@ bool ModuleManager::Load(const std::string& modname, bool defer)
{
newmod->ModuleSourceFile = filename;
newmod->ModuleDLLManager = newhandle;
- newmod->dying = false;
Modules[filename] = newmod;
std::string version = newhandle->GetVersion();
if (version.empty())
diff --git a/src/modules.cpp b/src/modules.cpp
index c2233a893..1c2fe3354 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -54,11 +54,17 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata
// These declarations define the behavours of the base class Module (which does nothing at all)
-Module::Module() { }
+Module::Module()
+ : ModuleDLLManager(NULL)
+ , dying(false)
+{
+}
+
CullResult Module::cull()
{
return classbase::cull();
}
+
Module::~Module()
{
}