Commit f21eec31 authored by Ell's avatar Ell

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.

(cherry picked from commit 0e5de957)
parent 3f281592
......@@ -741,6 +741,17 @@ gimp_projection_chunk_render_start (GimpProjection *proj)
proj, NULL);
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment