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:
outfoxxed 2025-07-04 20:29:50 -07:00
parent 7eff415b25
commit 87d99b866f
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -252,7 +252,7 @@ void PwNode::onParam(
}
}
PwNodeBoundAudio::PwNodeBoundAudio(PwNode* node): node(node) {
PwNodeBoundAudio::PwNodeBoundAudio(PwNode* node): QObject(node), node(node) {
if (node->device) {
QObject::connect(node->device, &PwDevice::deviceReady, this, &PwNodeBoundAudio::onDeviceReady);