[Orxonox-commit 4940] r9609 - code/branches/core6/src/libraries/core/object
landauf at orxonox.net
landauf at orxonox.net
Mon Apr 1 10:54:47 CEST 2013
Author: landauf
Date: 2013-04-01 10:54:47 +0200 (Mon, 01 Apr 2013)
New Revision: 9609
Modified:
code/branches/core6/src/libraries/core/object/Context.cc
Log:
context should delete its object lists
Modified: code/branches/core6/src/libraries/core/object/Context.cc
===================================================================
--- code/branches/core6/src/libraries/core/object/Context.cc 2013-03-30 21:40:48 UTC (rev 9608)
+++ code/branches/core6/src/libraries/core/object/Context.cc 2013-04-01 08:54:47 UTC (rev 9609)
@@ -42,6 +42,8 @@
Context::~Context()
{
+ for (size_t i = 0; i < this->objectLists_.size(); ++i)
+ delete this->objectLists_[i];
}
/*static*/ Context* Context::getRootContext()
More information about the Orxonox-commit
mailing list