Fix event listeners not being cleaned up
Eventually if you hit the green flag a million times with a "green flag => say" stack, you'd get an event emitter memory leak error.
This commit is contained in:
1 parent
d8a3e659d5
commit
44ca62fefc
1 file changed
+1
@@ -92,6 +92,7 @@ class Scratch3LooksBlocks {
|
||||
this.runtime.renderer.destroySkin(bubbleState.skinId);
|
||||
bubbleState.skinId = null;
|
||||
}
|
||||
target.removeListener(RenderedTarget.EVENT_TARGET_MOVED, this._onTargetMoved);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user