PathNode causes memory leak on scene reload

After reloading the same game with the same grids and agents the Path nodes duplicate, every time the scene is reloaded they x2:

PS: Using 4.2.18 Pro
Could be because of my agent path management or it can be a plugin bug?
Thanks in advance

Okay the problem was my agents had a reference to the Path and i was not clearing it when they were destroyed I implemente d this :
Captura de pantalla 2023-04-24 a las 18.14.32

Captura de pantalla 2023-04-24 a las 18.15.21

And the leak seems to be fixed. Any other suggestions to avoid stuff like this?
THanks!!

1 Like