fix(Task): Task::postNotification possible leak #3240

This commit is contained in:
Alex Fabijanic 2022-05-19 08:38:43 -07:00
parent 07bb778799
commit 2aa53f486a

View File

@ -131,9 +131,9 @@ void Task::postNotification(Notification* pNf)
FastMutex::ScopedLock lock(_mutex);
if (_pOwner)
{
_pOwner->postNotification(pNf);
}
else if (pNf)
pNf->release();
}