Also, if we need to free the contents of the array we need to use g_list_free_full or manually free the elements first.