Memory access/allocation fixes

1. Out of bounds access in get_pos_vals
2. Use of freed colors in parse_line
3. Leak XGlyphInfo objects in setfont