Bug 757772 - Filters->Animation->Blend... leaks GeglBuffers and contexts...

if invoked on a single layer image

In gimp_real_exit(), unref all stale images (which do not have a
display).
This commit is contained in:
Michael Natterer 2015-11-08 19:18:36 +01:00
parent 4446954e27
commit 76908b494b
1 changed files with 10 additions and 0 deletions

View File

@ -793,9 +793,19 @@ static gboolean
gimp_real_exit (Gimp *gimp,
gboolean force)
{
GList *image_iter;
if (gimp->be_verbose)
g_print ("EXIT: %s\n", G_STRFUNC);
/* get rid of images without display */
while ((image_iter = gimp_get_image_iter (gimp)))
{
GimpImage *image = image_iter->data;
g_object_unref (image);
}
gimp_plug_in_manager_exit (gimp->plug_in_manager);
gimp_modules_unload (gimp);