Don't leak cpuThread objects

This commit is contained in:
Henrik Rydgard 2013-08-10 11:39:53 +02:00
parent 360210876c
commit c6956c299a

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();
}