Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: memory leak on deleting marker #1419

Open
kd509 opened this issue Feb 22, 2023 · 1 comment
Open

Bug: memory leak on deleting marker #1419

kd509 opened this issue Feb 22, 2023 · 1 comment
Assignees

Comments

@kd509
Copy link

kd509 commented Feb 22, 2023

Operating system

Windows 10, 19045.2604

Browser Version

Chrome 110.0.5481.104

How severe is the bug?

high

Bug description

When trying to remove a marker from the map using setMap(null) and set the object and all known references to null, marker stays in memory.

Steps to reproduce

You can reproduce it with your own example:
https://jsfiddle.net/gh/get/library/pure/googlemaps/js-samples/tree/master/dist/samples/marker-remove/jsfiddle

  1. open the url
  2. create a heap memory dump in developer tools
  3. search for "_.wh". There are four objects
  4. click on "delete markers" in jsfiddle
  5. click on garbage collector in developer tools
  6. create a new heap memory dump in developer tools
  7. search for "_.wh". There should be one less, but still four availble.

Console log output

No response

@wangela
Copy link
Member

wangela commented Feb 22, 2023

If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.

@kd509 Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants