fix unload
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user