[FIX] Revert memory-leak change (#1862)
[FIX] Revert memory-leak change (#1862)


aidinabedi/playcanvas-engine,MicroWorldwide/PlayCanvas,MicroWorldwide/PlayCanvas,playcanvas/engine,sereepap2029/playcanvas,sereepap2029/playcanvas,aidinabedi/playcanvas-engine,sereepap2029/playcanvas,playcanvas/engine