Deviceshell: Cleanup shellProcess destruction

Change-Id: I71507d9e74979fca461784575257e7bafd1b4838
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Marcus Tillmanns
2022-09-14 09:52:09 +02:00
parent 720d07928b
commit 5ebb467cc6
5 changed files with 17 additions and 16 deletions

View File

@@ -814,7 +814,7 @@ public:
cmd.addArg("/bin/sh");
m_shell.reset(new LinuxDeviceShell(cmd));
connect(m_shell.get(), &DeviceShell::done, this, [this] { m_shell.reset(); });
connect(m_shell.get(), &DeviceShell::done, this, [this] { m_shell.release()->deleteLater(); });
return m_shell->start();
}