MainChannelClient is used by other clients to store some data so should not disappear if other clients are still present. Keep a owning reference to it and release after RedClient is released.
59be4f19 red-client: Make sure MainChannelClient is freed as last
server/red-client.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)