Prevent memory leak in freeing of the VertexBuffer.