clutter-stage: Use g_array_free instead of g_array_unref
authorNeil Roberts <neil@linux.intel.com>
Fri, 18 Jun 2010 14:19:59 +0000 (15:19 +0100)
committerNeil Roberts <neil@linux.intel.com>
Fri, 18 Jun 2010 15:03:07 +0000 (16:03 +0100)
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

index 9d7e716..cdbbd1b 100644 (file)
@@ -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);
 }