Delete callbacks when their thread is deleted.

This commit is contained in:
Unknown W. Brackets committed 2013-09-09 00:22:00 -07:00
1 parent 4bba276696
commit 1040123a97
1 file changed
+4
+4
View File
@@ -464,6 +464,10 @@ public:
~Thread()
{
// Callbacks are automatically deleted when their owning thread is deleted.
for (auto it = callbacks.begin(), end = callbacks.end(); it != end; ++it)
kernelObjects.Destroy<Callback>(*it);
if (pushedStacks.size() != 0)
{
WARN_LOG_REPORT(SCEKERNEL, "Thread ended within an extended stack");