yagajs / leaflet-ng2

Angular.io integration of Leaflet
https://leaflet-ng2.yagajs.org
ISC License
66 stars 26 forks source link

Memory leak since the EventListeners are not detached #437

Open michaelarnauts opened 5 years ago

michaelarnauts commented 5 years ago

Describe the bug It seems that various EventListeners on the document are added (PointerMove etc), but they are not detached when destroying the component.

To Reproduce Steps to reproduce the behavior:

Expected behavior This component should detach all EventListeners when destroying.

Environment (please complete the following information):

atd-schubert commented 5 years ago

Thanks for the detailed description. I will take a look at it the next days...