Skip to content

reds: Fix closure of SpiceServer in case of connected clients

Frediano Ziglio requested to merge fziglio/spice:reds_leaks into master

When spice_server_destroy is called with pending clients (currently not a big issue, usually the programs using SPICE server are exiting then), some leaks can happen.

This is due to the fact that some dispatcher messages are queued to handle some serialization but then they are neved executed as the entire system is closed.

Close all connections and handle all main dispatcher messages manually to remove these leaks.

Merge request reports