fix leaks on scalebar and bitmap glyphs
rfc98 mapscript fixups