浏览代码

Merge pull request #17493 from Rubonnek/bullet-physics-server-leak

Fixed leak in BulletPhysicsServer
Rémi Verschelde 7 年之前
父节点
当前提交
ea204628ad
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      modules/bullet/bullet_physics_server.cpp

+ 3 - 1
modules/bullet/bullet_physics_server.cpp

@@ -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;