app: in gimp_projection_chunk_render_start(), don't leak empty region

In gimp_projection_chunk_render_start(), don't leak the current
update region when it's empty, but not NULL, and properly shut down
the idle source.
This commit is contained in:
Ell 2019-01-12 08:14:40 -05:00
parent f8cd5891ee
commit 0e5de95760
1 changed files with 11 additions and 0 deletions

View File

@ -741,6 +741,17 @@ gimp_projection_chunk_render_start (GimpProjection *proj)
proj, NULL);
}
}
else
{
if (region)
cairo_region_destroy (region);
if (proj->priv->idle_id)
{
g_source_remove (proj->priv->idle_id);
proj->priv->idle_id = 0;
}
}
}
static void