fix little memleak, and fail if can't write projection
fix little memleak, and fail if can't write projection

seanisom/vtp,seanisom/vtp,markraz/vtp,nakijun/vtp,seanisom/vtp,nakijun/vtp,nakijun/vtp,markraz/vtp,markraz/vtp,markraz/vtp,nakijun/vtp,seanisom/vtp,markraz/vtp,nakijun/vtp,seanisom/vtp