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()