From ba9270a887bdc52cddf1ed2f90a51fb2d678663b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 22 Sep 2014 11:00:02 +0200 Subject: [PATCH] Pass parent to Client::Keyboard in TestWaylandSeat This ensures that the Keyboard doesn't leak in the test. --- src/wayland/autotests/client/test_wayland_seat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/autotests/client/test_wayland_seat.cpp b/src/wayland/autotests/client/test_wayland_seat.cpp index 28ac9dbb3e..c660ff273d 100644 --- a/src/wayland/autotests/client/test_wayland_seat.cpp +++ b/src/wayland/autotests/client/test_wayland_seat.cpp @@ -408,7 +408,7 @@ void TestWaylandSeat::testKeyboard() // no pointer yet - won't be set QVERIFY(!serverKeyboard->focusedSurface()); - Keyboard *keyboard = m_seat->createKeyboard(); + Keyboard *keyboard = m_seat->createKeyboard(m_seat); QVERIFY(keyboard->isValid()); wl_display_flush(m_connection->display()); QTest::qWait(100);