summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-24 17:22:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-24 17:22:43 +0200
commit5952fe02902f3ef53a71bf7e08b24535a3003612 (patch)
tree2a580bb43caaee0145542b7ac0cd8523223c1cd1
parentd53099d36986ca7207f507f11d8e9552340f210c (diff)
api: don't forcefully unload .dll's
-rw-r--r--api/plugin-support.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp
index 1bafd6ff..191b8d73 100644
--- a/api/plugin-support.hpp
+++ b/api/plugin-support.hpp
@@ -76,12 +76,7 @@ struct dylib final
}
~dylib()
{
- if (handle.isLoaded())
- {
- const bool success = handle.unload();
- if (!success)
- qDebug() << "can't unload dylib" << filename << handle.errorString();
- }
+ // QLibrary refcounts the .dll's so don't forcefully unload
}
static QList<std::shared_ptr<dylib>> enum_libraries(const QString& library_path)