mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-06 00:31:10 +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);
|
FastMutex::ScopedLock lock(_mutex);
|
||||||
|
|
||||||
if (_pOwner)
|
if (_pOwner)
|
||||||
{
|
|
||||||
_pOwner->postNotification(pNf);
|
_pOwner->postNotification(pNf);
|
||||||
}
|
else if (pNf)
|
||||||
|
pNf->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user