mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Fix small memory leak
Now windows that do not exist will not be able to stay in redraw requests
This commit is contained in:
@@ -1156,7 +1156,7 @@ mod glow_integration {
|
||||
} else {
|
||||
repaint_after
|
||||
.into_iter()
|
||||
.map(|(id, time)| {
|
||||
.flat_map(|(id, time)| {
|
||||
if time.is_zero() {
|
||||
if let Some(id) = window_map.get(&id) {
|
||||
Some(EventResult::RepaintNext(*id))
|
||||
@@ -1181,7 +1181,6 @@ mod glow_integration {
|
||||
None
|
||||
}
|
||||
})
|
||||
.flatten()
|
||||
.collect::<Vec<EventResult>>()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user