diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 374b26c07c..2e9fd766c7 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2038,6 +2038,7 @@ void __KernelReturnFromModuleFunc() if (module->nm.status == MODULE_STATUS_UNLOADING) { // TODO: Delete the waiting thread? + module->Cleanup(); kernelObjects.Destroy(leftModuleID); } }