diff options
author | Corentin Noël <corentin@elementary.io> | 2018-06-02 19:16:32 +0100 |
---|---|---|
committer | Corentin Noël <corentin.noel@collabora.co.uk> | 2018-06-07 12:54:56 +0100 |
commit | 2a45b7de7cf5955b81cc1778dbb5085bfabb1c56 (patch) | |
tree | 01685004c5ae8c51735ce03408064c07d0157a1a /clutter | |
parent | 62c67be4c832b8787907581e90db0cde19423b16 (diff) | |
download | mutter-2a45b7de7cf5955b81cc1778dbb5085bfabb1c56.tar.gz |
clutter-input-device-xi2: Check for null group_modes before unref
Diffstat (limited to 'clutter')
-rw-r--r-- | clutter/clutter/x11/clutter-input-device-xi2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clutter/clutter/x11/clutter-input-device-xi2.c b/clutter/clutter/x11/clutter-input-device-xi2.c index f62ba85dc..1254aca3a 100644 --- a/clutter/clutter/x11/clutter-input-device-xi2.c +++ b/clutter/clutter/x11/clutter-input-device-xi2.c @@ -110,7 +110,8 @@ clutter_input_device_xi2_finalize (GObject *object) if (device_xi2->wacom_device) libwacom_destroy (device_xi2->wacom_device); - g_array_unref (device_xi2->group_modes); + if (device_xi2->group_modes) + g_array_unref (device_xi2->group_modes); #endif G_OBJECT_CLASS (clutter_input_device_xi2_parent_class)->finalize (object); |