fix crash when closing platform popups

This commit is contained in:
2026-03-05 19:07:26 -05:00
parent a0875fd1ff
commit b11402f842
3 changed files with 12 additions and 5 deletions

View File

@@ -80,11 +80,12 @@ void popup_close(PopupWindow *popup) {
if (popup->open_flag)
*popup->open_flag = 0;
popup->alive = 0;
platform_set_frame_callback(popup->platform_window, nullptr, nullptr);
ui_destroy(popup->ui_ctx);
renderer_destroy(popup->renderer);
platform_destroy_window(popup->platform_window);
popup->alive = 0;
}
void popup_do_frame(PopupWindow *popup, F32 dt) {