openwebf / webf

Build flutter apps with HTML/CSS and JavaScript.
https://openwebf.com/
Apache License 2.0
1.49k stars 105 forks source link

fix: fix other element's memory leaks due to ImageProvider cached. #592

Open andycall opened 3 months ago

andycall commented 3 months ago

By default, Flutter caches the ImageProvider globally. However, these providers also hold strong references to WebF's elements.

This PR removes these strong references to ensure elements can be garbage collected freely, except for the ImageProviders.