forked from quickshell/quickshell
		
	fix(slock): memory leak when creating non SessionLockSurface
This commit is contained in:
		
							parent
							
								
									83a0ec6fc6
								
							
						
					
					
						commit
						f004454395
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue