mirror of https://github.com/WerWolv/ImHex.git
Don't dlclose nullptrs in plugins (#179)
* dont dlclose nullptrs in plugins this fixes a segmentation fault at startup when dlclose is called with a nullptr * Style fixes Co-authored-by: WerWolv <werwolv98@gmail.com>
This commit is contained in:
parent
4c9459def3
commit
372981920e
|
@ -41,6 +41,7 @@ namespace hex {
|
|||
}
|
||||
|
||||
Plugin::~Plugin() {
|
||||
if (this->m_handle != nullptr)
|
||||
dlclose(this->m_handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue