Commit d929b43f authored by Emden R Gansner's avatar Emden R Gansner

Fix bug in routespl, when the code encounters a degenerate case when trying to…

Fix bug in routespl, when the code encounters a degenerate case when trying to reclaim space and thus calls make_polyline. The old code freed the array of points returned, but this array is static in make_polyline and should never be freed.
parent bd97cff6
Pipeline #17170183 passed with stages
in 1 minute and 42 seconds
......@@ -634,7 +634,6 @@ static pointf *_routesplines(path * pp, int *npoints, int polyline)
agerr(AGWARN, "Unable to reclaim box space in spline routing for edge \"%s\" -> \"%s\". Something is probably seriously wrong.\n", agnameof(agtail(realedge)), agnameof(aghead(realedge)));
make_polyline (pl, &polyspl);
limitBoxes (boxes, boxn, polyspl.ps, polyspl.pn, INIT_DELTA);
free (polyspl.ps);
}
*npoints = spl.pn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment