Fix deallocation of Api2D.