소스 검색

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;