From b99efdf3196bb7687dd4ad8f188d9e2ec12f0683 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 8 Dec 2014 22:37:34 +0100 Subject: delete QLibrary, not force unload() Issue: #96 Reported-by: @sasam Also fixes a memory leak. --- opentrack/plugin-support.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opentrack') 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); -- cgit v1.2.3