Преглед на файлове

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;