Fix a leak in ClientServerOutsideProcessSlowTest unittest

It looks like posting the delete request from custom
deleter might not deliver the actual delete to the QtcProcess
for some reason (e.g. event loop wasn't spinning anymore).

Change-Id: I4f797984e28d738015881bd0fe4f91d28f525989
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2021-09-03 15:25:12 +02:00
parent 1d88a65747
commit 21fabfeeb6

View File

@@ -38,7 +38,7 @@ public:
{
process->kill();
process->waitForFinished();
process->deleteLater();
delete process;
}
};