mirror of https://github.com/GNOME/gimp.git
libgimp: fix a memory leak.
Discovered while playing with b_sanitize=address flag.
This commit is contained in:
parent
7f29543895
commit
18c21abf0c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue