Fix some memory leaks if SDDM is closed when a session is running

This commit is contained in:
David Edmundson 2014-05-22 17:44:33 +02:00
parent 034efb9dd0
commit a768f5f406

View File

@ -139,6 +139,7 @@ namespace SDDM {
Authenticator::~Authenticator() {
stop();
delete m_pam;
}
Display *Authenticator::display() const {
@ -414,6 +415,8 @@ namespace SDDM {
// wait for finished
if (!process->waitForFinished(5000))
process->kill();
process->deleteLater();
process = nullptr;
}
void Authenticator::finished() {