From db26fe7ca8de76d7802cb5c74f683e42870754ee Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 18 Oct 2024 12:35:19 +0200 Subject: [PATCH] Debug Tools: Metrics: Fixed a crash when browsing "InputText" section before using one. (#8071) Caused by 21d03edcb --- imgui_widgets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 8a504ef1d..c8e0a5b5e 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -4129,6 +4129,7 @@ ImGuiInputTextState::ImGuiInputTextState() { memset(this, 0, sizeof(*this)); Stb = IM_NEW(ImStbTexteditState); + memset(Stb, 0, sizeof(*Stb)); } ImGuiInputTextState::~ImGuiInputTextState()