slidr3D causes a memory leak

“addControl” for “slidr3D” seems to cause a memory leak.
For “slider3D” sample (https://playground.babylonjs.com/#2PKNJB#7) in “Babylon official Document”
I added a tool based on this (Babylon Scene Debugging Tool).
Here is the playground.
Babylon.js Playground
“Heap Used:” and “Heap Total:” continue to increase without any operation.

2 Likes

So, my initial message was - I can’t find anything, but then i dug dipper :slight_smile:

Problem found, thank you SO MUCH for reporting. I am working on fixing this.

1 Like

Thanks again - Fix memory leaks by RaananW · Pull Request #13231 · BabylonJS/Babylon.js (github.com)

3 Likes

Nice catch @Yuki_Miya!

1 Like