From 1d195a37e49be08be12387c7a1a62d20aa7c29bb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 14 Jul 2014 22:15:09 -0700 Subject: [PATCH] Cleanup modules on unloadself. --- Core/HLE/sceKernelModule.cpp | 1 + 1 file changed, 1 insertion(+) 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); } }