I came across some mildly confusing text for g_array_free that made me stop and think twice.
g_array_free