From cb555321358599ab8f59ecbfe77e7fc01c46ae22 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Mon, 11 Apr 2022 13:06:29 +0200 Subject: [PATCH] test/rules: Ensure we destroy the test window on cleanup This avoids crashing when a test fails --- autotests/integration/xdgshellclient_rules_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotests/integration/xdgshellclient_rules_test.cpp b/autotests/integration/xdgshellclient_rules_test.cpp index aa5e7bc2ab..b44216227a 100644 --- a/autotests/integration/xdgshellclient_rules_test.cpp +++ b/autotests/integration/xdgshellclient_rules_test.cpp @@ -206,6 +206,10 @@ void TestXdgShellClientRules::init() void TestXdgShellClientRules::cleanup() { + if (!m_shellSurface.isNull()) { + destroyTestWindow(); + } + Test::destroyWaylandConnection(); // Wipe the window rule config clean.