Appearently can not delete buffers in destructor of shape.