[gimp] app: forgotten GList freeing.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: forgotten GList freeing.
- Date: Sat, 21 Aug 2021 17:07:10 +0000 (UTC)
commit 9a0876b9bd6e10f691c552130b9b0cfdb2d54b89
Author: Jehan <jehan girinstud io>
Date: Sat Aug 21 19:06:14 2021 +0200
app: forgotten GList freeing.
Thanks to Massimo for the report.
app/actions/edit-commands.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/app/actions/edit-commands.c b/app/actions/edit-commands.c
index 787f818b2d..eda8f57b1d 100644
--- a/app/actions/edit-commands.c
+++ b/app/actions/edit-commands.c
@@ -502,7 +502,10 @@ edit_clear_cmd_callback (GimpAction *action,
for (iter = drawables; iter; iter = iter->next)
/* Return if any has a locked alpha. */
if (! check_drawable_alpha (iter->data, data))
- return;
+ {
+ g_list_free (drawables);
+ return;
+ }
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_PAINT,
_("Clear"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]