mirror of https://github.com/GNOME/gimp.git
Bug 719593 - On clang, brush outline is not displayed
Don't access path_data->len after path_data has been freed.
This commit is contained in:
parent
6c73f28b6d
commit
95becc7615
|
@ -110,6 +110,7 @@ gimp_bezier_desc_new_from_bound_segs (GimpBoundSeg *bound_segs,
|
||||||
gint n_points;
|
gint n_points;
|
||||||
gint seg;
|
gint seg;
|
||||||
gint i;
|
gint i;
|
||||||
|
guint path_data_len;
|
||||||
|
|
||||||
g_return_val_if_fail (bound_segs != NULL, NULL);
|
g_return_val_if_fail (bound_segs != NULL, NULL);
|
||||||
g_return_val_if_fail (n_bound_segs > 0, NULL);
|
g_return_val_if_fail (n_bound_segs > 0, NULL);
|
||||||
|
@ -158,8 +159,10 @@ gimp_bezier_desc_new_from_bound_segs (GimpBoundSeg *bound_segs,
|
||||||
|
|
||||||
g_free (points);
|
g_free (points);
|
||||||
|
|
||||||
|
path_data_len = path_data->len;
|
||||||
|
|
||||||
return gimp_bezier_desc_new ((cairo_path_data_t *) g_array_free (path_data, FALSE),
|
return gimp_bezier_desc_new ((cairo_path_data_t *) g_array_free (path_data, FALSE),
|
||||||
path_data->len);
|
path_data_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue