fix(slock): memory leak when creating non SessionLockSurface

This commit is contained in:
outfoxxed 2024-03-02 06:22:14 -08:00
parent 83a0ec6fc6
commit f004454395
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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;
}