diff --git a/addons/godot_xterm/native/src/terminal.h b/addons/godot_xterm/native/src/terminal.h index 85f8160..607f025 100644 --- a/addons/godot_xterm/native/src/terminal.h +++ b/addons/godot_xterm/native/src/terminal.h @@ -160,7 +160,7 @@ namespace godot enum SelectionMode { NONE, POINTER }; bool selecting = false; SelectionMode selection_mode = SelectionMode::NONE; - Timer *selection_timer = new Timer(); + Timer *selection_timer; void _handle_selection(Ref event); void _on_selection_held(); };