summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-12-08 22:37:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-12-08 22:45:48 +0100
commitb99efdf3196bb7687dd4ad8f188d9e2ec12f0683 (patch)
tree57380da96986853cfebf31026d9417883fc04a1a
parent48d038b789db119404a5da320890ac38109a8e95 (diff)
delete QLibrary, not force unload()
Issue: #96 Reported-by: @sasam Also fixes a memory leak.
-rw-r--r--opentrack/plugin-support.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentrack/plugin-support.cpp b/opentrack/plugin-support.cpp
index c682a1af..2c129906 100644
--- a/opentrack/plugin-support.cpp
+++ b/opentrack/plugin-support.cpp
@@ -213,7 +213,8 @@ dylib::dylib(const QString& filename, Type t) :
dylib::~dylib()
{
#if defined(_WIN32)
- handle->unload();
+ if (handle)
+ delete handle;
#else
if (handle)
(void) dlclose(handle);