summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-29 13:06:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-29 13:18:32 +0200
commit7e5fae3f4b8de73894e811e7a282d9175e3ab970 (patch)
tree0ace7262afc4876ad259d9de78003d42abd9bc27
parent6482a7e2582867d51c19bb12d513bc52dde2cc66 (diff)
api/plugins: prevent unloading shared libraries when changed
It's pointless and can lead to leaks.
-rw-r--r--opentrack/plugin-support.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp
index 30c738bb..b228b8d4 100644
--- a/opentrack/plugin-support.hpp
+++ b/opentrack/plugin-support.hpp
@@ -65,6 +65,7 @@ struct dylib final {
QString fullPath = QCoreApplication::applicationDirPath() + "/" + filename;
handle = new QLibrary(fullPath);
+ handle->setLoadHints(QLibrary::PreventUnloadHint | handle->loadHints());
struct _foo {
static bool die(QLibrary*& l, bool failp)