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

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