Cleanup modules on unloadself.

This commit is contained in:
Unknown W. Brackets 2014-07-14 22:15:09 -07:00
parent 78ddffee2c
commit 1d195a37e4

View file

@ -2038,6 +2038,7 @@ void __KernelReturnFromModuleFunc()
if (module->nm.status == MODULE_STATUS_UNLOADING) {
// TODO: Delete the waiting thread?
module->Cleanup();
kernelObjects.Destroy<Module>(leftModuleID);
}
}