typo

Signed-off-by: Mattias Andrée <maandree@operamail.com>
Fix memory leak

Signed-off-by: Mattias Andrée <maandree@operamail.com>
Do not just queue "Client close" message, but also send it

Signed-off-by: Mattias Andrée <maandree@operamail.com>
store structure version for all structures when marshalling

Signed-off-by: Mattias Andrée <maandree@operamail.com>