egui/crates/egui_extras/src
Vanadiae 8333615072
Fix memory leak when `forget_image` is called while loading (#7380)
This is the same issue that was fixed for the http bytes loader in
239ade9a59

* [x] I have followed the instructions in the PR template

----------------

Funnily, [this
comment](https://github.com/emilk/egui/issues/3747#issuecomment-1872192997)
describes exactly how I encountered this issue:

> That assert is wrong if something calls forget between the start of
the request and the end of it.

I'm displaying lots of images in a scrolling grid (20 or so visible at a
time). It seems like image textures are never freed up automatically so
it stacks up a lot meaning I have to unload the image textures manually
with `egui::Context::forget_image()` in each `eframe::App::update()`
call for the images that are no longer shown when scrolling.

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2025-08-05 14:41:32 +02:00
..
datepicker egui_extras: Enable setting DatePickerButton start and end year explicitly (#7061) 2025-06-16 18:27:26 +02:00
loaders Fix memory leak when `forget_image` is called while loading (#7380) 2025-08-05 14:41:32 +02:00
image.rs Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
layout.rs Implement `BitOr` and `BitOrAssign` for `Rect` (#7319) 2025-07-09 15:29:51 +02:00
lib.rs Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
loaders.rs Animated WebP support (#5470) 2024-12-29 11:46:08 +01:00
sizing.rs Add assert messages and print bad argument values in asserts (#5216) 2025-03-25 09:20:29 +01:00
strip.rs Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
syntax_highlighting.rs Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00
table.rs Use Rust edition 2024 (#7280) 2025-06-30 14:01:57 +02:00