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

[google_maps_flutter] Fix memory leak and map initialization issue #767

Closed

Conversation

seungsoo47
Copy link
Contributor

When using a google map's addListener(), do not call the Javascript object directly. This causes a memory leak.

Do:
map.addListener('bounds_changed', (event) => { BoundChanged.postMessage('') });
Do not:
map.addListener('bounds_changed', BoundChanged.postMessage);

When using a google map's addListener(), do not call the Javascript object directly.
This causes a memory leak.

Do:
 map.addListener('bounds_changed', (event) => { BoundChanged.postMessage('') });
Do not:
 map.addListener('bounds_changed', BoundChanged.postMessage);
@seungsoo47 seungsoo47 closed this Nov 8, 2024
@seungsoo47 seungsoo47 deleted the google_maps_241107 branch November 8, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant