mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix assert position after testing, now it is working like expected
This commit is contained in:
parent
92f1f79af9
commit
e91583d1dc
@ -26,9 +26,8 @@ void AutoPtrContainer::duplicate()
|
||||
void AutoPtrContainer::release()
|
||||
{
|
||||
Poco::ScopedLock<Poco::FastMutex> lock(mReferenceCountMutex);
|
||||
|
||||
assert(mReferenceCount > 0);
|
||||
mReferenceCount--;
|
||||
assert(mReferenceCount >= 0);
|
||||
if (0 == mReferenceCount) {
|
||||
delete this;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user