forked from quickshell/quickshell
		
	services/pipewire: destroy bound audio object when node is destroyed
Fixes a leak and prevents a UAF via device volume signals derefing the freed node. Fixes #91
This commit is contained in:
		
							parent
							
								
									7eff415b25
								
							
						
					
					
						commit
						87d99b866f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -252,7 +252,7 @@ void PwNode::onParam(
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PwNodeBoundAudio::PwNodeBoundAudio(PwNode* node): node(node) {
 | 
					PwNodeBoundAudio::PwNodeBoundAudio(PwNode* node): QObject(node), node(node) {
 | 
				
			||||||
	if (node->device) {
 | 
						if (node->device) {
 | 
				
			||||||
		QObject::connect(node->device, &PwDevice::deviceReady, this, &PwNodeBoundAudio::onDeviceReady);
 | 
							QObject::connect(node->device, &PwDevice::deviceReady, this, &PwNodeBoundAudio::onDeviceReady);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue