didn't actually remove state on widget remove (mem leak)

This commit is contained in:
2026-01-19 21:39:13 -05:00
parent 7bafb04a34
commit 796bc41752
2 changed files with 13 additions and 4 deletions

View File

@@ -143,6 +143,7 @@ impl<State> UiRsc for DefaultRsc<State> {
fn on_remove(&mut self, id: WidgetId) {
self.events.remove(id);
self.state.remove(id);
}
}