summaryrefslogtreecommitdiffhomepage
path: root/opentrack/plugin-support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/plugin-support.cpp')
-rw-r--r--opentrack/plugin-support.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/opentrack/plugin-support.cpp b/opentrack/plugin-support.cpp
index 2c129906..403798de 100644
--- a/opentrack/plugin-support.cpp
+++ b/opentrack/plugin-support.cpp
@@ -120,15 +120,16 @@ QList<mem<dylib>> dylib::enum_libraries()
dylib::dylib(const QString& filename, Type t) :
type(t),
+ filename(filename),
Dialog(nullptr),
Constructor(nullptr),
- Meta(nullptr)
+ Meta(nullptr),
+ handle(nullptr)
{
// otherwise dlopen opens the calling executable
if (filename.size() == 0)
return;
- this->filename = filename;
#if defined(_WIN32)
QString fullPath = QCoreApplication::applicationDirPath() + "/" + this->filename;
handle = new QLibrary(fullPath);