Skip to content

Commit db26fe7

Browse files
committed
Debug Tools: Metrics: Fixed a crash when browsing "InputText" section before using one. (#8071)
Caused by 21d03ed
1 parent 604f2fa commit db26fe7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imgui_widgets.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4129,6 +4129,7 @@ ImGuiInputTextState::ImGuiInputTextState()
41294129
{
41304130
memset(this, 0, sizeof(*this));
41314131
Stb = IM_NEW(ImStbTexteditState);
4132+
memset(Stb, 0, sizeof(*Stb));
41324133
}
41334134

41344135
ImGuiInputTextState::~ImGuiInputTextState()

0 commit comments

Comments
 (0)