[gimp] app: various fixes to last commit
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: various fixes to last commit
- Date: Wed, 6 Mar 2019 20:57:56 +0000 (UTC)
commit caad9ca649c1fed5e6bc9fb7a252b5eae8397c0c
Author: Ell <ell_se yahoo com>
Date: Wed Mar 6 15:39:29 2019 -0500
app: various fixes to last commit
app/core/gimplineart.c | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimplineart.c b/app/core/gimplineart.c
index 23174a1609..ecd4cf18d7 100644
--- a/app/core/gimplineart.c
+++ b/app/core/gimplineart.c
@@ -1149,12 +1149,13 @@ gimp_line_art_close (GeglBuffer *buffer,
end3:
g_list_free_full (candidates, g_free);
- g_clear_object (&strokes);
if (gimp_async_is_stopped (async))
goto end2;
}
+ g_clear_object (&strokes);
+
/* Draw straight line segments */
if (segment_max_length > 0)
{
@@ -1238,12 +1239,18 @@ gimp_line_art_close (GeglBuffer *buffer,
g_free (normals);
g_free (curvatures);
g_free (smoothed_curvatures);
- g_array_free (keypoints, TRUE);
- g_hash_table_destroy (visited);
+ g_clear_pointer (&radii, g_free);
+ if (keypoints)
+ g_array_free (keypoints, TRUE);
+ g_clear_pointer (&visited, g_hash_table_destroy);
if (gimp_async_is_stopped (async))
goto end1;
}
+ else
+ {
+ g_clear_object (&strokes);
+ }
if (closed_distmap)
{
@@ -1323,7 +1330,7 @@ gimp_lineart_denoise (GeglBuffer *buffer,
while (! g_queue_is_empty (q))
{
- Pixel *p = (Pixel *) g_queue_pop_head (q);
+ Pixel *p;
gint p2x;
gint p2y;
@@ -1334,6 +1341,8 @@ gimp_lineart_denoise (GeglBuffer *buffer,
goto end;
}
+ p = (Pixel *) g_queue_pop_head (q);
+
p2x = p->x + 1;
p2y = p->y;
if (p2x >= 0 && p2x < width && p2y >= 0 && p2y < height)
@@ -2657,6 +2666,8 @@ gimp_edgelset_new (GeglBuffer *buffer,
if (gimp_async_is_canceled (async))
{
+ gegl_buffer_iterator_stop (gi);
+
gimp_async_abort (async);
goto end;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]