garbage collect window states on quit as well

This commit is contained in:
Ryan Fleury
2025-09-17 14:50:06 -07:00
parent 0d15b8670b
commit 6abdadcccb
+1 -1
View File
@@ -17276,7 +17276,7 @@ rd_frame(void)
{ {
next = ws->hash_next; next = ws->hash_next;
RD_Cfg *cfg = rd_cfg_from_id(ws->cfg_id); RD_Cfg *cfg = rd_cfg_from_id(ws->cfg_id);
if(cfg == &rd_nil_cfg || ws->last_frame_index_touched < rd_state->frame_index) if(cfg == &rd_nil_cfg || ws->last_frame_index_touched < rd_state->frame_index || rd_state->quit)
{ {
ui_state_release(ws->ui); ui_state_release(ws->ui);
r_window_unequip(ws->os, ws->r); r_window_unequip(ws->os, ws->r);