Merge remote-tracking branch 'CookiePLMonster/xex-unload-image' into canary-old-update

This commit is contained in:
illusion98 2019-12-16 04:11:36 -05:00
parent efde5068b0
commit 65eed6f061
1 changed files with 2 additions and 3 deletions

View File

@ -377,7 +377,7 @@ object_ref<UserModule> KernelState::LoadUserModule(const char* raw_name,
module = object_ref<UserModule>(new UserModule(this));
X_STATUS status = module->LoadFromFile(path);
if (XFAILED(status)) {
object_table()->RemoveHandle(module->handle());
object_table()->ReleaseHandle(module->handle());
return nullptr;
}
@ -435,8 +435,7 @@ void KernelState::UnloadUserModule(const object_ref<UserModule>& module,
return e->path() == module->path();
}) == user_modules_.end());
global_lock.unlock();
object_table()->RemoveHandle(module->handle());
object_table()->ReleaseHandle(module->handle());
}
void KernelState::TerminateTitle() {