From 189dba2e2169d023547a186e4cfc2daa07a0a4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 28 Apr 2021 10:06:40 +0200 Subject: [PATCH] Fixing memory leak when switching scenes --- front/src/Phaser/Game/Game.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/src/Phaser/Game/Game.ts b/front/src/Phaser/Game/Game.ts index 6a48572a..50bfb17a 100644 --- a/front/src/Phaser/Game/Game.ts +++ b/front/src/Phaser/Game/Game.ts @@ -55,6 +55,9 @@ export class Game extends Phaser.Game { // The final event before the step repeats. Your last chance to do anything to the canvas before it all starts again. eventEmitter.emit(Events.POST_RENDER, renderer, time, delta); + } else { + // @ts-ignore + this.scene.isProcessing = false; } }