Revision: 8510 http://playerstage.svn.sourceforge.net/playerstage/?rev=8510&view=rev Author: hsujohnhsu Date: 2010-01-15 09:46:42 +0000 (Fri, 15 Jan 2010)
Log Message: ----------- delete visual on Joint and PhysicsEngine destruction Modified Paths: -------------- code/gazebo/trunk/server/physics/Joint.cc code/gazebo/trunk/server/physics/PhysicsEngine.cc Modified: code/gazebo/trunk/server/physics/Joint.cc =================================================================== --- code/gazebo/trunk/server/physics/Joint.cc 2010-01-15 09:44:26 UTC (rev 8509) +++ code/gazebo/trunk/server/physics/Joint.cc 2010-01-15 09:46:42 UTC (rev 8510) @@ -70,6 +70,12 @@ // Desctructor Joint::~Joint() { + if (this->visual) + { + OgreCreator::Instance()->DeleteVisual( this->visual ); + this->visual = NULL; + } + delete this->erpP; delete this->cfmP; delete this->stopKpP; Modified: code/gazebo/trunk/server/physics/PhysicsEngine.cc =================================================================== --- code/gazebo/trunk/server/physics/PhysicsEngine.cc 2010-01-15 09:44:26 UTC (rev 8509) +++ code/gazebo/trunk/server/physics/PhysicsEngine.cc 2010-01-15 09:46:42 UTC (rev 8510) @@ -80,7 +80,12 @@ // Destructor PhysicsEngine::~PhysicsEngine() { - delete this->visual; + if (this->visual) + { + OgreCreator::Instance()->DeleteVisual( this->visual ); + this->visual = NULL; + } + delete this->gravityP; delete this->updateRateP; delete this->stepTimeP; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit