From c254e97c6b376f035235559f7f46158167f80d21 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Tue, 6 Sep 2022 09:00:04 +0100 Subject: [PATCH] FindBar fix uninitialized results_count Found by Valgrind. --- editor/editor_help.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 560cd241113..5d7691576ca 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1695,6 +1695,8 @@ EditorHelpBit::EditorHelpBit() { } FindBar::FindBar() { + results_count = 0; + search_text = memnew(LineEdit); add_child(search_text); search_text->set_custom_minimum_size(Size2(100 * EDSCALE, 0));