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);