Fixed some minor client-side memory leaks.

Patch by Guillaume Melquiond <silene>

See patch #3896


git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@22855 a0f10bec-cc02-0410-94fc-a9cfff90b4cd