Explorar o código

Fixed memory leak due to transformNode not being disposed

David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
7bafe46b7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/scene.ts

+ 1 - 1
src/scene.ts

@@ -4562,7 +4562,7 @@ export class Scene extends AbstractScene implements IAnimatable {
             this.meshes[0].dispose(true);
         }
         while (this.transformNodes.length) {
-            this.removeTransformNode(this.transformNodes[0]);
+            this.transformNodes[0].dispose(true);
         }
 
         // Release cameras