diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-05-06 17:48:23 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-05-06 17:48:23 +0200 |
commit | 5d2f0f5182cd59e83629e9727f915d7aebb61bb9 (patch) | |
tree | b63283fc1ab4aa648175c6fa51259b170bcf4734 | |
parent | 7670ee7eec2305b697c41b921628eb9c6463596e (diff) |
remote: only remove the proxy id when it existed
-rw-r--r-- | src/pipewire/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pipewire/remote.c b/src/pipewire/remote.c index 544c77b6..173eb4fe 100644 --- a/src/pipewire/remote.c +++ b/src/pipewire/remote.c @@ -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 |