| 1764 | //----------------------------------------------------------------------------- |
| 1765 | |
| 1766 | void SimObject::unregisterReference(SimObject **ptr) |
| 1767 | { |
| 1768 | Notify *note = removeNotify((void *) ptr, Notify::ObjectRef); |
| 1769 | if(note) |
| 1770 | { |
| 1771 | freeNotify(note); |
| 1772 | |
| 1773 | if( mFlags.test( AutoDelete ) ) |
| 1774 | { |
| 1775 | for( Notify* n = mNotifyList; n != NULL; n = n->next ) |
| 1776 | if( n->type == Notify::ObjectRef ) |
| 1777 | return; |
| 1778 | |
| 1779 | deleteObject(); |
| 1780 | } |
| 1781 | } |
| 1782 | } |
| 1783 | |
| 1784 | //----------------------------------------------------------------------------- |
| 1785 |
no test coverage detected