fix unload

This commit is contained in:
2025-03-14 22:16:36 -05:00
parent ad6386c36b
commit 0807a1e01b
3 changed files with 7 additions and 5 deletions

View File

@@ -71,10 +71,10 @@ void App::load(std::string lib) {
}
modules.push_back(m);
m->setSelf(modules.rbegin());
m->setSelf(modules.rbegin().base());
}
void App::unload(std::list<Module*>::iterator it) {
void App::unload(decltype(Module::self) it) {
void* handle = (*it)->getHandle();
delete *it;
dlclose(handle);