forked from quickshell/quickshell
		
	core/window: fix UAF in createQQuickWindow
This commit is contained in:
		
							parent
							
								
									4d74851fd0
								
							
						
					
					
						commit
						5c1d600e84
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -134,6 +134,7 @@ void ProxyWindowBase::ensureQWindow() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (useOldWindow) return;
 | 
						if (useOldWindow) return;
 | 
				
			||||||
	delete this->window;
 | 
						delete this->window;
 | 
				
			||||||
 | 
						this->window = nullptr; // createQQuickWindow may indirectly reference this->window
 | 
				
			||||||
	this->window = this->createQQuickWindow();
 | 
						this->window = this->createQQuickWindow();
 | 
				
			||||||
	this->window->setFormat(format);
 | 
						this->window->setFormat(format);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue