From: <ro...@us...> - 2009-06-06 01:27:46
|
Revision: 7795 http://playerstage.svn.sourceforge.net/playerstage/?rev=7795&view=rev Author: robotos Date: 2009-06-06 01:27:44 +0000 (Sat, 06 Jun 2009) Log Message: ----------- Fix assert. Patch 2800395 by Tanaka Akira Modified Paths: -------------- code/gazebo/trunk/player/GazeboClient.cc Modified: code/gazebo/trunk/player/GazeboClient.cc =================================================================== --- code/gazebo/trunk/player/GazeboClient.cc 2009-06-06 01:26:07 UTC (rev 7794) +++ code/gazebo/trunk/player/GazeboClient.cc 2009-06-06 01:27:44 UTC (rev 7795) @@ -74,9 +74,14 @@ // steal the global clock - a bit aggressive, but a simple approach if (GlobalTime) + { delete GlobalTime; - assert((GlobalTime = new GazeboTime())); + GlobalTime = NULL; + } + GlobalTime = new GazeboTime(); + assert(GlobalTime != 0); + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |