mirror of https://github.com/GNOME/gimp.git
app: fix memory leak in gimp_image_merge_layers()
This commit is contained in:
parent
b0d2d4fb49
commit
3f7b135a2a
|
@ -512,7 +512,11 @@ gimp_image_merge_layers (GimpImage *image,
|
|||
}
|
||||
|
||||
if ((x2 - x1) == 0 || (y2 - y1) == 0)
|
||||
return NULL;
|
||||
{
|
||||
g_slist_free (reverse_list);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Start a merge undo group. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue