[gimp] app: fix leaked queue created at init() (as reported by Massimo).



commit 70f2192bffe076b369d1071b882fad2a4c563f11
Author: Jehan <jehan girinstud io>
Date:   Mon Aug 16 12:16:52 2021 +0200

    app: fix leaked queue created at init() (as reported by Massimo).

 app/vectors/gimpstroke.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/app/vectors/gimpstroke.c b/app/vectors/gimpstroke.c
index a9725c5de6..c87fc9b31c 100644
--- a/app/vectors/gimpstroke.c
+++ b/app/vectors/gimpstroke.c
@@ -1054,6 +1054,7 @@ gimp_stroke_real_duplicate (GimpStroke *stroke)
                              "name", gimp_object_get_name (stroke),
                              NULL);
 
+  g_queue_free_full (new_stroke->anchors, (GDestroyNotify) gimp_anchor_free);
   new_stroke->anchors = g_queue_copy (stroke->anchors);
 
   for (list = new_stroke->anchors->head; list; list = g_list_next (list))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]