Changeset 5804 for code/branches/core5/src/libraries/core/OrxonoxClass.cc
- Timestamp:
- Sep 26, 2009, 11:16:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/OrxonoxClass.cc
r5791 r5804 52 52 OrxonoxClass::~OrxonoxClass() 53 53 { 54 // if (!this->requestedDestruction_) 55 // COUT(2) << "Warning: Destroyed object without destroy() (" << this->getIdentifier()->getName() << ")" << std::endl; 56 57 assert(this->referenceCount_ == 0); 58 54 59 delete this->metaList_; 55 60 … … 62 67 void OrxonoxClass::destroy() 63 68 { 64 if (this->referenceCount_ > 0) 65 this->requestedDestruction_ = true; 66 else 69 this->requestedDestruction_ = true; 70 if (this->referenceCount_ == 0) 67 71 delete this; 68 72 }
Note: See TracChangeset
for help on using the changeset viewer.