thisdot / open-source

Repository for open source packages
MIT License
34 stars 11 forks source link

UseHttpImageSourcePipe is not revoking created object URLs #56

Closed ktrz closed 3 years ago

ktrz commented 3 years ago

What package and version are you using?

@this-dot/ng-utils@0.1.2

What browser are you using?

Chrome and Safari

What operating system are you using?

any

Actual Behavior

Once image is loaded using useHttpImgSrc pipe it is never revoked.

Expected Behavior

When the pipe is destroyed it should revoke all urls that it has created.

Reproduction

This issue is very noticable here: https://stackblitz.com/edit/angular-ivy-t64leu?file=src/app/app.component.html

After hiding and showing the content multiple time the memory usage goes up every time the same content is shown again. Screenshot 2021-09-18 at 14 13 09 Screenshot 2021-09-18 at 14 14 18 Screenshot 2021-09-18 at 14 14 07

Additional Information

No response