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) {
|
||||
qWarning() << "SessionLock.surface does not create a SessionLockSurface. Aborting lock.";
|
||||
if (instanceObj != nullptr) instanceObj->deleteLater();
|
||||
this->unlock();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue