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

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