[gimp/gimp-2-8] Bug 719593 - On clang, brush outline is not displayed
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 719593 - On clang, brush outline is not displayed
- Date: Sat, 30 Nov 2013 21:38:33 +0000 (UTC)
commit ecefaead96fce52d499dccdb02191b3e93352231
Author: Michael Henning <drawoc darkrefraction com>
Date: Sat Nov 30 16:31:57 2013 -0500
Bug 719593 - On clang, brush outline is not displayed
Don't access path_data->len after path_data has been freed.
(cherry picked from commit 95becc7615c7e9cf2f6135c8d5b0fe1cca86648f)
app/core/gimpbezierdesc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpbezierdesc.c b/app/core/gimpbezierdesc.c
index 03ea2f0..f2eacb2 100644
--- a/app/core/gimpbezierdesc.c
+++ b/app/core/gimpbezierdesc.c
@@ -111,6 +111,7 @@ gimp_bezier_desc_new_from_bound_segs (BoundSeg *bound_segs,
gint n_points;
gint seg;
gint i;
+ guint path_data_len;
g_return_val_if_fail (bound_segs != NULL, NULL);
g_return_val_if_fail (n_bound_segs > 0, NULL);
@@ -159,8 +160,10 @@ gimp_bezier_desc_new_from_bound_segs (BoundSeg *bound_segs,
g_free (points);
+ path_data_len = path_data->len;
+
return gimp_bezier_desc_new ((cairo_path_data_t *) g_array_free (path_data, FALSE),
- path_data->len);
+ path_data_len);
}
void
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]