Revision: 8508
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8508&view=rev
Author:   hsujohnhsu
Date:     2010-01-15 09:43:43 +0000 (Fri, 15 Jan 2010)

Log Message:
-----------
delete cgVisual in Body destructor

Modified Paths:
--------------
    code/gazebo/trunk/server/physics/Body.cc

Modified: code/gazebo/trunk/server/physics/Body.cc
===================================================================
--- code/gazebo/trunk/server/physics/Body.cc    2010-01-15 09:41:16 UTC (rev 
8507)
+++ code/gazebo/trunk/server/physics/Body.cc    2010-01-15 09:43:43 UTC (rev 
8508)
@@ -111,7 +111,10 @@
     SensorManager::Instance()->RemoveSensor(*siter);
 
   if (this->cgVisual)
-    delete this->cgVisual;
+  {
+    OgreCreator::Instance()->DeleteVisual( this->cgVisual );
+    this->cgVisual = NULL;
+  }
 
   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

Reply via email to