Bjørn Lie
5449d6bb79
- Add the following upstream patch to solve GIMP crashes: f0dd96c28751f15d0703b384bfc7c314af01caa8.diff See https://gitlab.gnome.org/GNOME/glib/-/issues/2770 OBS-URL: https://build.opensuse.org/request/show/1008790 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=491
15 lines
472 B
Diff
15 lines
472 B
Diff
diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c
|
|
index f17b3488b9b0e9a376dcd9e999062613ac580497..17b8606572385dca8453e7d5a6194db0706dad08 100644
|
|
--- a/gobject/gparamspecs.c
|
|
+++ b/gobject/gparamspecs.c
|
|
@@ -894,6 +894,9 @@ param_param_is_valid (GParamSpec *pspec,
|
|
{
|
|
GParamSpec *param = value->data[0].v_pointer;
|
|
|
|
+ if (param == NULL)
|
|
+ return FALSE;
|
|
+
|
|
return g_value_type_compatible (G_PARAM_SPEC_TYPE (param), G_PARAM_SPEC_VALUE_TYPE (pspec));
|
|
}
|
|
|