From 5952fe02902f3ef53a71bf7e08b24535a3003612 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 24 May 2017 17:22:43 +0200 Subject: api: don't forcefully unload .dll's --- api/plugin-support.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'api') 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> enum_libraries(const QString& library_path) -- cgit v1.2.3