Delete callbacks when their thread is deleted.
This commit is contained in:
parent
4bba276696
commit
1040123a97
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue