Cleanup modules on unloadself.

This commit is contained in:
Unknown W. Brackets committed 2014-08-17 14:25:53 -07:00
1 parent 78ddffee2c
commit 1d195a37e4
1 file changed
+1
+1
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);
}
}