-
Notifications
You must be signed in to change notification settings - Fork 3k
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
animationFrames() has memory leak. #6946
Comments
C-zhui
changed the title
animationFrame() has memory leak.
animationFrames() has memory leak.
Apr 24, 2022
I can confirm that it accumulates a new Subscription for each animation frame. The Subscriptions returned from I tried fixing this, but I don't know which is the preferred solution:
|
In my opinion:
|
have to hard code to free ? question : #7523 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
animationFrames will add subscriptions again again before unsubscribe.
Expected behavior
Here I describe the problem.
I can't find the logic of removing sub subscription inside
animationFrames
.So I add this to source code in
Subscription
class.Add this to project code.
You will see this.
Shouldn't they be removed from
array:this._finalizers
over time???Reproduction code
Reproduction URL
No response
Version
7.5.5
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: