app: fix memory leak in gimp_image_merge_layers()

This commit is contained in:
Ell 2017-04-23 10:50:42 -04:00
parent b0d2d4fb49
commit 3f7b135a2a
1 changed files with 5 additions and 1 deletions

View File

@ -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. */