compositor: fix dangling pointer usage
client: fix possible double delete