Issue #12712: non-configured filter throws CRITICAL when updating.
This commit is contained in:
@ -385,13 +385,15 @@ gimp_drawable_filter_update (GimpDrawableFilter *filter)
|
||||
GStrv auxnames;
|
||||
const GimpDrawable **auxinputs;
|
||||
guint n_aux;
|
||||
|
||||
if (filter->config)
|
||||
{
|
||||
GObjectClass *klass;
|
||||
GParamSpec **pspecs;
|
||||
guint n_pspecs;
|
||||
|
||||
if (! filter->config)
|
||||
gimp_drawable_filter_get_config (filter);
|
||||
|
||||
g_return_if_fail (filter->config != NULL);
|
||||
|
||||
klass = G_OBJECT_GET_CLASS (filter->config);
|
||||
pspecs = g_object_class_list_properties (klass, &n_pspecs);
|
||||
values = gimp_value_array_new (n_pspecs);
|
||||
@ -416,9 +418,6 @@ gimp_drawable_filter_update (GimpDrawableFilter *filter)
|
||||
g_value_unset (&value);
|
||||
}
|
||||
|
||||
g_free (pspecs);
|
||||
}
|
||||
|
||||
propnames = g_strv_builder_end (builder);
|
||||
auxnames = (GStrv) g_hash_table_get_keys_as_array (filter->pad_inputs, &n_aux);
|
||||
auxinputs = g_new0 (const GimpDrawable *, n_aux + 1);
|
||||
@ -431,6 +430,7 @@ gimp_drawable_filter_update (GimpDrawableFilter *filter)
|
||||
filter->composite_mode, filter->composite_space,
|
||||
(const gchar **) auxnames, auxinputs);
|
||||
|
||||
g_free (pspecs);
|
||||
g_strfreev (propnames);
|
||||
g_strv_builder_unref (builder);
|
||||
gimp_value_array_unref (values);
|
||||
|
Reference in New Issue
Block a user