diff --git a/source/helpers/plugin_handler.cpp b/source/helpers/plugin_handler.cpp index 7be860c0a..5f2559bd9 100644 --- a/source/helpers/plugin_handler.cpp +++ b/source/helpers/plugin_handler.cpp @@ -41,7 +41,8 @@ namespace hex { } Plugin::~Plugin() { - dlclose(this->m_handle); + if (this->m_handle != nullptr) + dlclose(this->m_handle); } void Plugin::initializePlugin() const {