mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-10 05:20:15 +01:00
This allows closures to be properly unrefed when they are no longer used instead of staying alive until wireplumber exits Because GClosure has no weak references, we are now sharing the GPtrArray that holds these references among all the active closures and each closure is responsible for removing itself from the array when it is finalized. The lua engine holds a reference to a "store" object that also has a pointer to the array and when this "store" is finalized, all closures are invalidated and removed. Even if they stay alive afterwards, they are only holding a ref to an empty array |
||
|---|---|---|
| .. | ||
| wp | ||
| wplua | ||
| meson.build | ||