1
0
mirror of synced 2025-01-18 00:56:49 +01:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}