Commit 91089055 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

Don't leak lots of g_arrays...

2005-10-02  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpbezierstroke.c: Don't leak lots of g_arrays...
parent 7b21586f
......@@ -4,6 +4,8 @@
should not calculate tangents for points beyond the end of the
array...
Don't leak lots of g_arrays...
2005-10-02 Simon Budig <simon@gimp.org>
* app/vectors/gimpbezierstroke.c: a segment doesn't necessarily
......
......@@ -1020,6 +1020,10 @@ gimp_bezier_stroke_segment_nearest_tangent_get (const GimpCoords *beziercoords,
else
g_printerr ("%f: (%.2f, %.2f) /%.3f/\n", min_dist,
(*ret_point).x, (*ret_point).y, *ret_pos);
g_array_free (ret_coords, TRUE);
g_array_free (ret_params, TRUE);
return min_dist;
}
......
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