Fixed dynamicPolygon destructor.