From 62357018155badc4c4ae2c620e9d8846717d1a8c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 11 Jan 2022 18:00:01 +0100 Subject: api: unload dll's on program exit This works with MSVC, as long as the simconnect dll isn't unloaded by its module. --- api/plugin-support.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp index 30b50753..4300da18 100644 --- a/api/plugin-support.hpp +++ b/api/plugin-support.hpp @@ -53,7 +53,7 @@ struct dylib final return; handle.setFileName(filename_); - handle.setLoadHints(QLibrary::DeepBindHint | QLibrary::PreventUnloadHint | QLibrary::ResolveAllSymbolsHint); + handle.setLoadHints(QLibrary::DeepBindHint | QLibrary::ResolveAllSymbolsHint); #ifdef __clang__ # pragma clang diagnostic push -- cgit v1.2.3