libgimp: fix a memory leak.

Discovered while playing with b_sanitize=address flag.
This commit is contained in:
Jehan 2023-02-16 20:59:33 +01:00
parent 7f29543895
commit 18c21abf0c
1 changed files with 1 additions and 0 deletions

View File

@ -315,6 +315,7 @@ gimp_image_take_selected_layers (GimpImage *image,
success = gimp_image_set_selected_layers (image, g_list_length (layers),
(const GimpLayer **) sel_layers);
g_list_free (layers);
g_free (sel_layers);
return success;
}