mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't leak cpuThread objects
This commit is contained in:
parent
360210876c
commit
c6956c299a
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue