mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-05 12:59:20 +00:00
remove some memory leaks in example code.
This commit is contained in:
@@ -8,7 +8,7 @@ b3PhysicsClientHandle b3ConnectSharedMemory2(int key)
|
||||
|
||||
SharedMemoryCommandProcessor* cmdProc = new SharedMemoryCommandProcessor();
|
||||
cmdProc->setSharedMemoryKey(key);
|
||||
PhysicsDirect* cl = new PhysicsDirect(cmdProc);
|
||||
PhysicsDirect* cl = new PhysicsDirect(cmdProc,true);
|
||||
|
||||
cl->setSharedMemoryKey(key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user