Revision: 8509 http://playerstage.svn.sourceforge.net/playerstage/?rev=8509&view=rev Author: hsujohnhsu Date: 2010-01-15 09:44:26 +0000 (Fri, 15 Jan 2010)
Log Message: ----------- delete visuals on Geom destruction. Modified Paths: -------------- code/gazebo/trunk/server/physics/Geom.cc Modified: code/gazebo/trunk/server/physics/Geom.cc =================================================================== --- code/gazebo/trunk/server/physics/Geom.cc 2010-01-15 09:43:43 UTC (rev 8508) +++ code/gazebo/trunk/server/physics/Geom.cc 2010-01-15 09:44:26 UTC (rev 8509) @@ -82,6 +82,22 @@ // Destructor Geom::~Geom() { + for (std::vector<OgreVisual*>::iterator iter = this->visuals.begin(); iter != this->visuals.end(); iter++) + { + if (*iter) + { + OgreCreator::Instance()->DeleteVisual( (*iter) ); + (*iter) = NULL; + } + } + + std::cerr << "deleting bbVisual for Geom" << std::endl; + if (this->bbVisual) + { + OgreCreator::Instance()->DeleteVisual( this->bbVisual ); + this->bbVisual = NULL; + } + delete this->massP; delete this->xyzP; delete this->rpyP; 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