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:
Neil Roberts 2010-06-18 15:19:59 +01:00
parent 5a73e20a15
commit e2dcd7e852

View File

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