Commit 3e0be204 authored by Jehan's avatar Jehan

app: fix wrong extension active state on exit.

First the deserialize data of extensionrc was wrong. I need to edit the
pointer to the GList (and dereference it when I need).

Also when inserting an extension into the `running_extensions` hash
table, I could not reuse the same string as in the `processed` list
(because this string is going to be freed at end of initialization).
Just always use the GimpObject name of the extension, since it will stay
alive for as long as the object is alive.
parent 9c4860b3
Pipeline #220001 passed with stages
in 39 minutes and 3 seconds
......@@ -259,9 +259,9 @@ gimp_extension_manager_deserialize (GimpConfig *config,
gint nest_level,
gpointer data)
GimpExtensionManager *manager = GIMP_EXTENSION_MANAGER (config);
GList *processed = *(GList**) data;
GTokenType token;
GimpExtensionManager *manager = GIMP_EXTENSION_MANAGER (config);
GList **processed = (GList**) data;
GTokenType token;
......@@ -348,7 +348,8 @@ gimp_extension_manager_deserialize (GimpConfig *config,
if (gimp_extension_run (list->data, &error))
g_hash_table_insert (manager->p->running_extensions,
(gpointer) name, list->data);
(gpointer) gimp_object_get_name (list->data),
......@@ -363,7 +364,7 @@ gimp_extension_manager_deserialize (GimpConfig *config,
/* Save the list of processed extension IDs, whether
* active or not.
processed = g_list_prepend (processed, name);
*processed = g_list_prepend (*processed, name);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment