mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
input-device: Use g_clear_pointer
https://bugzilla.gnome.org/show_bug.cgi?id=712812
This commit is contained in:
parent
1d11cc324e
commit
507d8b1cef
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user