mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 05:50:29 +02:00
Add a safety check to prevent leaks.
This commit is contained in:
1 parent
0fb5877d75
commit
ead70f56d9
1 file changed
+6
@@ -394,6 +394,12 @@ public:
|
||||
|
||||
~Thread()
|
||||
{
|
||||
if (pushedStacks.size() != 0)
|
||||
{
|
||||
WARN_LOG_REPORT(HLE, "Thread ended within an extended stack");
|
||||
for (size_t i = 0; i < pushedStacks.size(); ++i)
|
||||
userMemory.Free(pushedStacks[i].start);
|
||||
}
|
||||
FreeStack();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user