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

Calling stop on a tween after it was paused causes memory leak #4023

Closed
goldfire opened this issue Sep 11, 2018 · 2 comments
Closed

Calling stop on a tween after it was paused causes memory leak #4023

goldfire opened this issue Sep 11, 2018 · 2 comments

Comments

@goldfire
Copy link
Contributor

goldfire commented Sep 11, 2018

Version

  • Phaser Version: 3.12.0
  • Operating system: macOS
  • Browser: Chrome

Description

When you pause a tween it will be placed in the _pending array rather than the _active array. This prevents the tween's update from calling, which means if you call stop it won't ever be removed from the _pending array and build up in memory.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

@goldfire
Copy link
Contributor Author

We just tested this from the master branch and the issue is resolved.

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