Leaflet.PixiOverlay
Leaflet.PixiOverlay copied to clipboard
_renderer is not destroyed
_renderer created at line 106 is not destroyed. On creating multiple PixiOverlays, video memory allocated at this place leaks.
If the field is destroyed by calling _renderer.destroy(), GPU memory is freed.
Probably PixiOverlay should have its own destroy() method that should destroy _renderer and possibly _auxRenderer as well.
Thanks for reporting. I will fix this but i need some time to think about it.
It has taken more time than expected but it is included in [email protected].