| 93 | //----------------------------------------------------------------------------- |
| 94 | |
| 95 | SimObject::~SimObject() |
| 96 | { |
| 97 | if( mFieldDictionary ) |
| 98 | { |
| 99 | delete mFieldDictionary; |
| 100 | mFieldDictionary = NULL; |
| 101 | } |
| 102 | |
| 103 | // Release persistent ID. |
| 104 | if( mPersistentId ) |
| 105 | { |
| 106 | mPersistentId->unresolve(); |
| 107 | mPersistentId->decRefCount(); |
| 108 | mPersistentId = NULL; |
| 109 | } |
| 110 | |
| 111 | if( mCopySource ) |
| 112 | mCopySource->unregisterReference( &mCopySource ); |
| 113 | |
| 114 | AssertFatal(nextNameObject == (SimObject*)-1,avar( |
| 115 | "SimObject::~SimObject: Not removed from dictionary: name %s, id %i", |
| 116 | objectName, mId)); |
| 117 | AssertFatal(nextManagerNameObject == (SimObject*)-1,avar( |
| 118 | "SimObject::~SimObject: Not removed from manager dictionary: name %s, id %i", |
| 119 | objectName,mId)); |
| 120 | AssertFatal(mFlags.test(Added) == 0, "SimObject::object " |
| 121 | "missing call to SimObject::onRemove"); |
| 122 | } |
| 123 | |
| 124 | //----------------------------------------------------------------------------- |
| 125 |
nothing calls this directly
no test coverage detected