summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/global-settings.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-29 20:47:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-29 20:47:44 +0200
commit849f66a663423011dc3fcc1aa77fc9c85cf0962c (patch)
treea771746a9c81c0ee4ee6fffc5f2c62027c909fd5 /facetracknoir/global-settings.cpp
parent0275a4a171d49229cf7987cafa94adf525f1787b (diff)
Correct stale pointer dereference
Diffstat (limited to 'facetracknoir/global-settings.cpp')
-rw-r--r--facetracknoir/global-settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/facetracknoir/global-settings.cpp b/facetracknoir/global-settings.cpp
index f0f0413e..be7fd7a7 100644
--- a/facetracknoir/global-settings.cpp
+++ b/facetracknoir/global-settings.cpp
@@ -104,7 +104,8 @@ DynamicLibrary::DynamicLibrary(const char* filename)
Constructor = (NULLARY_DYNAMIC_FUNCTION) handle->resolve(MAYBE_STDCALL_UNDERSCORE "GetConstructor" CALLING_CONVENTION_SUFFIX_VOID_FUNCTION);
Metadata = (METADATA_FUNCTION) handle->resolve(MAYBE_STDCALL_UNDERSCORE "GetMetadata" CALLING_CONVENTION_SUFFIX_VOID_FUNCTION);
#else
- handle = dlopen(fullPath.toLatin1().constData(), RTLD_NOW |
+ QByteArray latin1 = fullPath.toLatin1();
+ handle = dlopen(latin1.constData(), RTLD_NOW |
# ifdef __linux
RTLD_DEEPBIND
# else