Commit 5720b130 authored by Volker Krause's avatar Volker Krause

Fix use-after-free issue found by asan on the CI.

parent 5baa874e
......@@ -331,6 +331,7 @@ private Q_SLOTS:
mock->setTimeout(5000);
mock->setCommand("DUMMY");
mock->setAutoDelete(false);
mock->start();
QTest::qWait(250); // Should be plenty
......@@ -339,6 +340,8 @@ private Q_SLOTS:
QCOMPARE(spyFail.count(), 0);
QCOMPARE(spyLost.count(), 1);
QCOMPARE(spyState.count(), 2); // Authenticated, Disconnected
delete mock;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment