virtualmonitor: Make sure we clean up m_process after deleting

(cherry picked from commit c989be56cd)
This commit is contained in:
Aleix Pol 2022-10-17 00:33:01 +02:00 committed by Aleix Pol Gonzalez
parent ab7a5c4ccd
commit 67e85c14b6

View file

@ -111,6 +111,7 @@ bool VirtualMonitorPlugin::requestVirtualMonitor()
requestVirtualMonitor();
} else {
m_process->deleteLater();
m_process = nullptr;
}
qCWarning(KDECONNECT_PLUGIN_VIRTUALMONITOR) << "virtual display finished with" << device()->name() << m_process->readAllStandardError();
});