From e2dcd7e852c2bda2a6bf72c7c3f777c16ff9c89b Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 18 Jun 2010 15:19:59 +0100 Subject: [PATCH] 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. --- clutter/clutter-state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-state.c b/clutter/clutter-state.c index 9d7e7163a..cdbbd1b62 100644 --- a/clutter/clutter-state.c +++ b/clutter/clutter-state.c @@ -317,7 +317,7 @@ state_free (gpointer data) state->keys = g_list_remove (state->keys, 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_free (state); }