forked from qt-creator/qt-creator
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:
@@ -38,7 +38,7 @@ public:
|
|||||||
{
|
{
|
||||||
process->kill();
|
process->kill();
|
||||||
process->waitForFinished();
|
process->waitForFinished();
|
||||||
process->deleteLater();
|
delete process;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user