app: fix memory leak reported by Massimo.

This commit is contained in:
Jehan 2021-08-16 18:57:21 +02:00
parent abb904d64d
commit 4336b7a8e3
1 changed files with 5 additions and 2 deletions

View File

@ -540,8 +540,11 @@ gimp_pickable_contiguous_region_by_line_art (GimpPickable *pickable,
{
mask[c->x + c->y * width] = 1.0;
if (c->level >= line_art_max_grow)
/* Do not overflood under line arts. */
continue;
{
/* Do not overflood under line arts. */
g_free (c);
continue;
}
if (c->x > 0)
{
nx = c->x - 1;