Leaflet.PixiOverlay icon indicating copy to clipboard operation
Leaflet.PixiOverlay copied to clipboard

_renderer is not destroyed

Open cokicm opened this issue 6 years ago • 1 comments

_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.

cokicm avatar Aug 20 '19 08:08 cokicm

Thanks for reporting. I will fix this but i need some time to think about it.

manubb avatar Aug 22 '19 12:08 manubb

It has taken more time than expected but it is included in [email protected].

manubb avatar Feb 22 '23 20:02 manubb