forked from qt-creator/qt-creator
SSH: Fix some potential crashes.
Change-Id: I102e35c3dcd3725f357c91d9f0a77ab28d881b0d Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
This commit is contained in:
@@ -167,7 +167,8 @@ RemoteValgrindProcess::RemoteValgrindProcess(QSsh::SshConnection *connection, QO
|
||||
|
||||
RemoteValgrindProcess::~RemoteValgrindProcess()
|
||||
{
|
||||
delete m_connection;
|
||||
if (m_connection)
|
||||
m_connection->deleteLater();
|
||||
}
|
||||
|
||||
bool RemoteValgrindProcess::isRunning() const
|
||||
|
||||
Reference in New Issue
Block a user