You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no removal of the event listener in the teardown code for Map, which means that creating/tearing down maps repeatedly will leak memory over time.
Thanks for taking the time to report this with clear instructions, that is always appreciated. If you feel like you have an appropriate fix for this issue, a PR is always welcome.
Checklist
Steps to reproduce
Go to the constructor of
Map
and find:There is no removal of the event listener in the teardown code for
Map
, which means that creating/tearing down maps repeatedly will leak memory over time.Expected behavior
Map.remove()
should contain the following:Alternatively, it could be done in an
'unload'
event listener.Current behavior
Memory leak.
Minimal example reproducing the issue
No response
Environment
The text was updated successfully, but these errors were encountered: