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

Fix another setTimeout memory leak #5951

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Fix another setTimeout memory leak #5951

merged 1 commit into from
Jan 5, 2018

Conversation

jfirebaugh
Copy link
Contributor

Follow on to #5943, fixes #5123.

In the prior PR, I missed the fact that because the keys in this._cacheTimers are keys from unwrapped tile IDs, one call to _setCacheInvalidationTimer might overwrite the value from a prior call. This guards against that, and does so for the _timers map as well for good measure.

@jfirebaugh jfirebaugh requested a review from lbud January 4, 2018 23:44
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

Successfully merging this pull request may close these issues.

Possible memory leak when removing raster sources & layers
2 participants