From 7e5fae3f4b8de73894e811e7a282d9175e3ab970 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Jun 2016 13:06:27 +0200 Subject: api/plugins: prevent unloading shared libraries when changed It's pointless and can lead to leaks. --- opentrack/plugin-support.hpp | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3