Update language/tests/scripts/references/refsim.ring - decrement() function - Be sure that we can delete the variable and no other references exist
@@ -502,11 +502,13 @@ func decrement aMem,cVar
# Circular Reference
# Check if this is the last owner where we can delete the reference
incLostOwnerCount(aMem,cVar)
+ if nRefCount <= nDirectCount+nInDirectCount
if (getLostOwnerCount(aMem,cVar) > nRefCount+nDirectCount+nInDirectCount+1) or
( (nRefCount=1) and (getLostOwnerCount(aMem,cVar)=2)
and (getLostOwnerCount(aMem,cVar) > nDirectCount ) )
checkAllOwnersAreLost(aMem,cVar)
ok
+ ok
return
ok
# Increment lost owner counter
