mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
remote: only remove the proxy id when it existed
This commit is contained in:
parent
7670ee7eec
commit
5d2f0f5182
1 changed files with 3 additions and 3 deletions
|
|
@ -181,10 +181,10 @@ static void core_event_remove_id(void *data, uint32_t id)
|
|||
struct pw_proxy *proxy;
|
||||
|
||||
pw_log_debug("remote %p: object remove %u", this, id);
|
||||
if ((proxy = pw_map_lookup(&this->objects, id)) != NULL)
|
||||
if ((proxy = pw_map_lookup(&this->objects, id)) != NULL) {
|
||||
pw_proxy_destroy(proxy);
|
||||
|
||||
pw_map_remove(&this->objects, id);
|
||||
pw_map_remove(&this->objects, id);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue