mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fix(Task): Task::postNotification possible leak #3240
This commit is contained in:
parent
07bb778799
commit
2aa53f486a
@ -131,9 +131,9 @@ void Task::postNotification(Notification* pNf)
|
||||
FastMutex::ScopedLock lock(_mutex);
|
||||
|
||||
if (_pOwner)
|
||||
{
|
||||
_pOwner->postNotification(pNf);
|
||||
}
|
||||
else if (pNf)
|
||||
pNf->release();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user