summaryrefslogtreecommitdiff
path: root/examples/RoboticsLearning
diff options
context:
space:
mode:
authorErwin Coumans <erwin.coumans@gmail.com>2017-01-10 14:57:16 -0800
committerErwin Coumans <erwin.coumans@gmail.com>2017-01-10 14:57:16 -0800
commit3d6584962af3d4a1f5d453298e9e4ecd19f50a66 (patch)
treedb088dbe937d1fcc0fd666009b90cfb8fb331370 /examples/RoboticsLearning
parent5e948ebe00d770b5047e7bf55bb90e5ad8173078 (diff)
downloadbullet3-3d6584962af3d4a1f5d453298e9e4ecd19f50a66.tar.gz
remove some memory leaks in example code.
Diffstat (limited to 'examples/RoboticsLearning')
-rw-r--r--examples/RoboticsLearning/b3RobotSimAPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/RoboticsLearning/b3RobotSimAPI.cpp b/examples/RoboticsLearning/b3RobotSimAPI.cpp
index f4ad1fcb5..a2ab15632 100644
--- a/examples/RoboticsLearning/b3RobotSimAPI.cpp
+++ b/examples/RoboticsLearning/b3RobotSimAPI.cpp
@@ -911,7 +911,7 @@ bool b3RobotSimAPI::connect(GUIHelperInterface* guiHelper)
else
{
PhysicsServerCommandProcessor* sdk = new PhysicsServerCommandProcessor;
- m_data->m_clientServerDirect = new PhysicsDirect(sdk);
+ m_data->m_clientServerDirect = new PhysicsDirect(sdk,true);
bool connected = m_data->m_clientServerDirect->connect(guiHelper);
m_data->m_physicsClient = (b3PhysicsClientHandle)m_data->m_clientServerDirect;