fix g_slist_free_full causing segfault