Revision: 8674
http://playerstage.svn.sourceforge.net/playerstage/?rev=8674&view=rev
Author: hsujohnhsu
Date: 2010-05-12 02:33:57 +0000 (Wed, 12 May 2010)
Log Message:
-----------
fix segfault in OgreVisual destructor (delete sceneNode instead of
removeAndDestroyChild).
Modified Paths:
--------------
code/gazebo/trunk/server/rendering/OgreVisual.cc
Modified: code/gazebo/trunk/server/rendering/OgreVisual.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreVisual.cc 2010-05-11 23:06:51 UTC
(rev 8673)
+++ code/gazebo/trunk/server/rendering/OgreVisual.cc 2010-05-12 02:33:57 UTC
(rev 8674)
@@ -173,7 +173,10 @@
if (this->boundingBoxNode != NULL)
this->sceneNode->removeAndDestroyChild(
this->boundingBoxNode->getName() );
- this->parentNode->removeAndDestroyChild( this->sceneNode->getName() );
+ // delete works, but removeAndDestroyChild segfaults
+ delete this->sceneNode;
+ this->sceneNode = NULL;
+ //this->parentNode->removeAndDestroyChild( this->sceneNode->getName() );
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit