mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
clutter-stage: Use g_array_free instead of g_array_unref
g_array_unref was only added in GLib 2.22 so we should really update the requirements in the configure script if we want to use that function. However the array doesn't appear to have any extra reference taken on it anywhere so it should be safe to use g_array_free instead.
This commit is contained in:
parent
5a73e20a15
commit
e2dcd7e852
@ -317,7 +317,7 @@ state_free (gpointer data)
|
|||||||
state->keys = g_list_remove (state->keys, state->keys->data))
|
state->keys = g_list_remove (state->keys, state->keys->data))
|
||||||
clutter_state_key_free (state->keys->data);
|
clutter_state_key_free (state->keys->data);
|
||||||
|
|
||||||
g_array_unref (state->animators);
|
g_array_free (state->animators, TRUE);
|
||||||
g_hash_table_destroy (state->durations);
|
g_hash_table_destroy (state->durations);
|
||||||
g_free (state);
|
g_free (state);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user