Commit 0e5de957 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.
parent f8cd5891
......@@ -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
......
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