fix: clear previous_task reference after abort in Tween (#18541)

avoids memory leaks
pull/18497/head
prashantg-pixi 1 week ago committed by GitHub
parent edeef1f9f7
commit 199ffebca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: clear previous_task reference after abort in Tween to prevent memory leak on interrupted tweens

@ -275,6 +275,7 @@ export class Tween {
}
previous_task?.abort();
previous_task = null;
}
const elapsed = now - start;

Loading…
Cancel
Save