diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-24 17:22:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-24 17:22:43 +0200 |
commit | 5952fe02902f3ef53a71bf7e08b24535a3003612 (patch) | |
tree | 2a580bb43caaee0145542b7ac0cd8523223c1cd1 /api | |
parent | d53099d36986ca7207f507f11d8e9552340f210c (diff) |
api: don't forcefully unload .dll's
Diffstat (limited to 'api')
-rw-r--r-- | api/plugin-support.hpp | 7 |
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) |