[gimp/gimp-2-10] app: properly shut down gimp-parallel in stable versions



commit 74591e05984e0c7d986962a71997c4632e7c60c6
Author: Ell <ell_se yahoo com>
Date:   Fri Jul 6 02:06:18 2018 -0400

    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.
    
    (cherry picked from commit ed033b1cb577da3dfdb401ff5752579140ec1db4)

 app/app.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/app.c b/app/app.c
index 4bfdc69eab..abfa034056 100644
--- a/app/app.c
+++ b/app/app.c
@@ -499,6 +499,8 @@ app_exit_after_callback (Gimp       *gimp,
 
 #else
 
+  gimp_gegl_exit (gimp);
+
   gegl_exit ();
 
   exit (EXIT_SUCCESS);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]