remote: call disconnect to make sure we free all memory

This commit is contained in:
Wim Taymans 2018-07-12 11:05:31 +02:00
parent d6f40cefa6
commit a2d2d75a25

View file

@ -431,7 +431,7 @@ int pw_remote_steal_fd(struct pw_remote *remote)
int fd;
fd = pw_protocol_client_steal_fd(remote->conn);
pw_remote_update_state(remote, PW_REMOTE_STATE_UNCONNECTED, NULL);
pw_remote_disconnect(remote);
return fd;
}