fix: Crash when destructing a moved plugin

This commit is contained in:
Nik
2023-12-04 21:01:48 +01:00
committed by GitHub
parent eae3cd99ee
commit caee764af3

View File

@@ -67,7 +67,8 @@ namespace hex {
if (this->m_handle != 0)
FreeLibrary(HMODULE(this->m_handle));
#else
dlclose(reinterpret_cast<void*>(this->m_handle));
if (this->m_handle != 0)
dlclose(reinterpret_cast<void*>(this->m_handle));
#endif
}