From 6fe900f7a77b037393b6681834f9d888c0ec1544 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 13 Sep 2016 12:55:17 +0200 Subject: [PATCH] app: always call gimp_load_config() on a newly created Gimp instance Simply creating and destroying a Gimp now creates and destroys more members, and some of them always need a gimp->config object. --- app/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.c b/app/main.c index 5892bb0369..bdc9d69344 100644 --- a/app/main.c +++ b/app/main.c @@ -717,6 +717,7 @@ gimp_option_dump_gimprc (const gchar *option_name, babl_init (); gimp = g_object_new (GIMP_TYPE_GIMP, NULL); + gimp_load_config (gimp, NULL, NULL); success = gimp_config_dump (format); @@ -740,6 +741,7 @@ gimp_option_dump_pdb_procedures_deprecated (const gchar *option_name, babl_init (); gimp = g_object_new (GIMP_TYPE_GIMP, NULL); + gimp_load_config (gimp, NULL, NULL); /* Make sure to turn on compatibility mode so deprecated procedures * are included