forked from quickshell/quickshell
		
	core/reloader: ensure generation ptrs are removed on destroy
Broke things that used currentGeneration, and we shouldn't have a list of dangling pointers anyway.
This commit is contained in:
		
							parent
							
								
									5e2fb14551
								
							
						
					
					
						commit
						293341c9e1
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -94,6 +94,8 @@ void EngineGeneration::destroy() {
 | 
			
		|||
		this->root->deleteLater();
 | 
			
		||||
		this->root = nullptr;
 | 
			
		||||
	} else {
 | 
			
		||||
		g_generations.remove(this->engine);
 | 
			
		||||
 | 
			
		||||
		// the engine has never been used, no need to clean up
 | 
			
		||||
		delete this->engine;
 | 
			
		||||
		this->engine = nullptr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue