diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-08 22:37:34 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-12-08 22:45:48 +0100 |
commit | b99efdf3196bb7687dd4ad8f188d9e2ec12f0683 (patch) | |
tree | 57380da96986853cfebf31026d9417883fc04a1a /opentrack | |
parent | 48d038b789db119404a5da320890ac38109a8e95 (diff) |
delete QLibrary, not force unload()
Issue: #96
Reported-by: @sasam
Also fixes a memory leak.
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/plugin-support.cpp | 3 |
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); |