Geometry: Draw error checking
Line: Map buffer instead of allocating heap buffer