clutter-input-device-xi2: Check for null group_modes before unref

This commit is contained in:
Corentin Noël 2018-06-02 19:16:32 +01:00 committed by Corentin Noël
parent 62c67be4c8
commit 2a45b7de7c

View File

@ -110,6 +110,7 @@ clutter_input_device_xi2_finalize (GObject *object)
if (device_xi2->wacom_device)
libwacom_destroy (device_xi2->wacom_device);
if (device_xi2->group_modes)
g_array_unref (device_xi2->group_modes);
#endif