Blame SOURCES/0001-clutter-input-device-xi2-Check-for-null-group_modes-.patch

9501a8
From 2a45b7de7cf5955b81cc1778dbb5085bfabb1c56 Mon Sep 17 00:00:00 2001
9501a8
From: =?UTF-8?q?Corentin=20No=C3=ABl?= <corentin@elementary.io>
9501a8
Date: Sat, 2 Jun 2018 19:16:32 +0100
9501a8
Subject: [PATCH] clutter-input-device-xi2: Check for null group_modes before
9501a8
 unref
9501a8
9501a8
---
9501a8
 clutter/clutter/x11/clutter-input-device-xi2.c | 3 ++-
9501a8
 1 file changed, 2 insertions(+), 1 deletion(-)
9501a8
9501a8
diff --git a/clutter/clutter/x11/clutter-input-device-xi2.c b/clutter/clutter/x11/clutter-input-device-xi2.c
9501a8
index f62ba85dcb..1254aca3ae 100644
9501a8
--- a/clutter/clutter/x11/clutter-input-device-xi2.c
9501a8
+++ b/clutter/clutter/x11/clutter-input-device-xi2.c
9501a8
@@ -110,7 +110,8 @@ clutter_input_device_xi2_finalize (GObject *object)
9501a8
   if (device_xi2->wacom_device)
9501a8
     libwacom_destroy (device_xi2->wacom_device);
9501a8
 
9501a8
-  g_array_unref (device_xi2->group_modes);
9501a8
+  if (device_xi2->group_modes)
9501a8
+    g_array_unref (device_xi2->group_modes);
9501a8
 #endif
9501a8
 
9501a8
   G_OBJECT_CLASS (clutter_input_device_xi2_parent_class)->finalize (object);
9501a8
-- 
9501a8
2.23.0.rc1
9501a8