blob: 3e3839d7971380e4ff28f15f46e2fe8024b2c5ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- libkscreen-5.27.12/autotests/testkwaylanddpms.cpp.old 2025-01-06 11:56:48.000000000 -0600
+++ libkscreen-5.27.12/autotests/testkwaylanddpms.cpp 2025-07-04 05:10:30.827144062 -0500
@@ -48,7 +48,7 @@
TestDpmsClient::TestDpmsClient(QObject *parent)
: QObject(parent)
- , m_server(nullptr)
+ , m_server(nullptr), m_registry(nullptr)
{
setenv("WAYLAND_DISPLAY", s_socketName.toLocal8Bit().constData(), true);
m_server = new KScreen::WaylandTestServer(this);
@@ -95,7 +95,7 @@
{
m_thread->exit();
m_thread->wait();
- delete m_registry;
+ if(m_registry) delete m_registry;
delete m_thread;
delete m_connection;
}
--- libkscreen-5.27.12/autotests/testkwaylandbackend.cpp.old 2025-01-06 11:56:48.000000000 -0600
+++ libkscreen-5.27.12/autotests/testkwaylandbackend.cpp 2025-07-04 05:18:46.584459743 -0500
@@ -86,8 +86,10 @@
GetConfigOperation *op = new GetConfigOperation();
op->exec();
m_config = op->config();
- QVERIFY(m_config->isValid());
- qCDebug(KSCREEN_WAYLAND) << "ops" << m_config->outputs();
+ if(m_config != nullptr) {
+ QVERIFY(m_config->isValid());
+ qCDebug(KSCREEN_WAYLAND) << "ops" << m_config->outputs();
+ }
}
void testWaylandBackend::verifyConfig()
|