mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 01:50:04 +01:00
policy-{node,endpoint-device}: do not hold reference to si_link in closure
This may keep the link alive for longer than expected
This commit is contained in:
parent
04f77a5fbc
commit
51713d309a
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ function createLink (si_ep, si_target)
|
|||
si_link:activate (Feature.SessionItem.ACTIVE, function (l, e)
|
||||
if e then
|
||||
Log.warning (l, "failed to activate si-standard-link: " .. tostring(e))
|
||||
si_link:remove ()
|
||||
l:remove ()
|
||||
else
|
||||
Log.info (l, "activated si-standard-link")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function createLink (si, si_target, passthrough, exclusive)
|
|||
si_link:activate (Feature.SessionItem.ACTIVE, function (l, e)
|
||||
if e then
|
||||
Log.warning (l, "failed to activate si-standard-link: " .. tostring(e))
|
||||
si_link:remove ()
|
||||
l:remove ()
|
||||
else
|
||||
Log.info (l, "activated si-standard-link")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue