From ed033b1cb577da3dfdb401ff5752579140ec1db4 Mon Sep 17 00:00:00 2001 From: Ell Date: Fri, 6 Jul 2018 02:06:18 -0400 Subject: [PATCH] app: properly shut down gimp-parallel in stable versions In app_exit_after_callback(), call gimp_gegl_exit() before gegl_exit() when performing a quick shut-down in stable versions, so that gimp-parallel, and, in particular, the async thread pool, is properly shut down. Code running in the async thread pool may use GEGL (in particular, now the drawable previews are rendered asynchronously), and calling gegl_exit() while it's still running is unsafe. --- app/app.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/app.c b/app/app.c index 85c178b5fd..82a136e354 100644 --- a/app/app.c +++ b/app/app.c @@ -504,6 +504,8 @@ app_exit_after_callback (Gimp *gimp, #else + gimp_gegl_exit (gimp); + gegl_exit (); exit (EXIT_SUCCESS);