mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-14 08:59:19 -06:00
fix: Crash when destructing a moved plugin
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user