Commit 89628627 authored by Michael Natterer's avatar Michael Natterer 😴

libgimpconfig: cache the "gegl-property-keys" Quark

in gimp_config_param_spec_duplicate().
parent b814ea95
......@@ -343,8 +343,13 @@ gimp_config_param_spec_duplicate (GParamSpec *pspec)
if (copy)
GQuark quark = g_quark_from_static_string ("gegl-property-keys");
GHashTable *keys = g_param_spec_get_qdata (pspec, quark);
GQuark quark = 0;
GHashTable *keys;
if (G_UNLIKELY (! quark))
quark = g_quark_from_static_string ("gegl-property-keys");
keys = g_param_spec_get_qdata (pspec, quark);
if (keys)
g_param_spec_set_qdata_full (copy, quark, g_hash_table_ref (keys),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment