Skip to content

Commit 27cef4c

Browse files
committed
Initialize wayland inputhandler vars to null so the cleanup doesnt segfault
1 parent af9e557 commit 27cef4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/arch/InputHandler/InputHandler_Wayland.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ static const struct wl_pointer_listener wl_pointer_listener = {
422422

423423
InputHandler_Wayland::InputHandler_Wayland()
424424
{
425+
xkbContext = nullptr;
426+
keymap = nullptr;
427+
xkbState = nullptr;
428+
425429
// check that we have a wayland seat if not we should immediately return
426430
if (seat == nullptr) {
427431
return;

0 commit comments

Comments
 (0)