summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-05-06 17:48:23 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-06 17:48:23 +0200
commit5d2f0f5182cd59e83629e9727f915d7aebb61bb9 (patch)
treeb63283fc1ab4aa648175c6fa51259b170bcf4734
parent7670ee7eec2305b697c41b921628eb9c6463596e (diff)
remote: only remove the proxy id when it existed
-rw-r--r--src/pipewire/remote.c6
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