Explorar o código

Initialise LineEdit clear_button_status.

Avoiding undefined behaviour and cleaning up Valgrind output.
Ibrahn Sahir %!s(int64=6) %!d(string=hai) anos
pai
achega
7bf54d2334
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      scene/gui/line_edit.cpp

+ 2 - 0
scene/gui/line_edit.cpp

@@ -1608,6 +1608,8 @@ LineEdit::LineEdit() {
 	text_changed_dirty = false;
 	placeholder_alpha = 0.6;
 	clear_button_enabled = false;
+	clear_button_status.press_attempt = false;
+	clear_button_status.pressing_inside = false;
 
 	deselect();
 	set_focus_mode(FOCUS_ALL);