forked from quickshell/quickshell
fix(slock): memory leak when creating non SessionLockSurface
This commit is contained in:
parent
83a0ec6fc6
commit
f004454395
|
@ -78,6 +78,7 @@ void SessionLock::updateSurfaces(SessionLock* old) {
|
||||||
|
|
||||||
if (instance == nullptr) {
|
if (instance == nullptr) {
|
||||||
qWarning() << "SessionLock.surface does not create a SessionLockSurface. Aborting lock.";
|
qWarning() << "SessionLock.surface does not create a SessionLockSurface. Aborting lock.";
|
||||||
|
if (instanceObj != nullptr) instanceObj->deleteLater();
|
||||||
this->unlock();
|
this->unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue