client: Improve handling of event queue destruction with attached proxies
This MR improves our handling of premature destruction of event queues, which can lead to hard to diagnose memory errors, by:
- Warning the user of this error in destruction order
- Aborting instead of causing a use-after-free memory error, if an attempt is made to add events to a destroyed queue
Plus tests for the above.
Signed-off-by: Alexandros Frantzis alexandros.frantzis@collabora.com