소스 검색

Debug Tools: Metrics: Fixed a crash when browsing "InputText" section before using one. (#8071)

Caused by 21d03edcb
ocornut 11 달 전
부모
커밋
db26fe7ca8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      imgui_widgets.cpp

+ 1 - 0
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()