mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
core: improve cleanup
When the core is disconnected, first do _remove on all active proxies and then run the _destroy handles. This makes it easier to clean up dependent resources. Remove the modules after removing all objects. It's harder for odules to track and remove all objects.
This commit is contained in:
parent
4405fe4c14
commit
a7225090c8
3 changed files with 23 additions and 7 deletions
|
|
@ -840,6 +840,7 @@ struct pw_core {
|
|||
int recv_seq; /**< last received sequence number */
|
||||
int send_seq; /**< last protocol result code */
|
||||
|
||||
unsigned int removed:1;
|
||||
unsigned int destroyed:1;
|
||||
|
||||
void *user_data; /**< extra user data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue