| 1618 | //----------------------------------------------------------------------------- |
| 1619 | |
| 1620 | void SimObject::unregisterReference(SimObject **ptr) |
| 1621 | { |
| 1622 | Notify *note = removeNotify((void *) ptr, Notify::ObjectRef); |
| 1623 | if(note) |
| 1624 | { |
| 1625 | freeNotify(note); |
| 1626 | |
| 1627 | if( mFlags.test( AutoDelete ) ) |
| 1628 | { |
| 1629 | for( Notify* n = mNotifyList; n != NULL; n = n->next ) |
| 1630 | if( n->type == Notify::ObjectRef ) |
| 1631 | return; |
| 1632 | |
| 1633 | deleteObject(); |
| 1634 | } |
| 1635 | } |
| 1636 | } |
| 1637 | |
| 1638 | //----------------------------------------------------------------------------- |
| 1639 |
no test coverage detected