mirror of https://github.com/GNOME/gimp.git
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:
parent
f8cd5891ee
commit
0e5de95760
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue