input-device: Use g_clear_pointer

https://bugzilla.gnome.org/show_bug.cgi?id=712812
This commit is contained in:
Rui Matos 2013-11-21 16:23:00 +01:00
parent 1d11cc324e
commit 507d8b1cef

View File

@ -93,23 +93,9 @@ clutter_input_device_dispose (GObject *gobject)
device->associated = NULL; device->associated = NULL;
} }
if (device->axes != NULL) g_clear_pointer (&device->axes, g_array_unref);
{ g_clear_pointer (&device->keys, g_array_unref);
g_array_free (device->axes, TRUE); g_clear_pointer (&device->touch_sequences_info, g_hash_table_unref);
device->axes = NULL;
}
if (device->keys != NULL)
{
g_array_free (device->keys, TRUE);
device->keys = NULL;
}
if (device->touch_sequences_info)
{
g_hash_table_unref (device->touch_sequences_info);
device->touch_sequences_info = NULL;
}
if (device->inv_touch_sequence_actors) if (device->inv_touch_sequence_actors)
{ {