Noticed a lot of memory leak while running any example app on my macbook.
Attaching Leaks screenshots for todo example:

Hey, thanks for testing!
I am not an expert on this, but I don't think the codebase has many instances where memory leaks can happen (no unsafe, no std::mem::forget, no cycles of shared references).
I believe wgpu may have fixed memory leaks in the latest release. It may be interesting to run the tests with the updated iced_wgpu version in #269.
I just investigated a bit and wgpu does not seem to be leaking any memory. Instead, I believe I ended up finding a memory leak in winit when cloning a proxy (which iced does quite a bit).
I have reported the issue: https://github.com/rust-windowing/winit/issues/1525
__Update__: Implemented a fix in https://github.com/rust-windowing/winit/pull/1526
Thanks for investigating and submitting the PR to winit 馃檹馃徑
Closing as the fix was merged and landed in the 0.22.2 release of winit.
Most helpful comment
Thanks for investigating and submitting the PR to
winit馃檹馃徑