Merge pull request #162 from davidedmundson/memory_leaks

Fix some memory leaks if SDDM is closed when a session is running
This commit is contained in:
Pier Luigi Fiorini 2014-05-22 20:19:19 +02:00
commit 0622e7d24e

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() {