Don't leak cpuThread objects

This commit is contained in:
Henrik Rydgard committed 2013-08-10 11:39:53 +02:00
1 parent 360210876c
commit c6956c299a
1 file changed
+2
+2
View File
@@ -273,6 +273,8 @@ void PSP_Shutdown() {
if (g_Config.bSeparateCPUThread) {
CPU_SetState(CPU_THREAD_SHUTDOWN);
CPU_WaitStatus(&CPU_IsShutdown);
delete cpuThread;
cpuThread = 0;
} else {
CPU_Shutdown();
}