mirror of
https://github.com/godotengine/godot
synced 2024-09-05 06:38:25 +00:00
Fixed leak in BulletPhysicsServer
This commit is contained in:
parent
fe93459ef9
commit
e5ae9750ed
|
@ -89,7 +89,9 @@ BulletPhysicsServer::BulletPhysicsServer() :
|
|||
active(true),
|
||||
active_spaces_count(0) {}
|
||||
|
||||
BulletPhysicsServer::~BulletPhysicsServer() {}
|
||||
BulletPhysicsServer::~BulletPhysicsServer() {
|
||||
bulletdelete(emptyShape);
|
||||
}
|
||||
|
||||
RID BulletPhysicsServer::shape_create(ShapeType p_shape) {
|
||||
ShapeBullet *shape = NULL;
|
||||
|
|
Loading…
Reference in a new issue