simutil: Use g_slist_free_full

This commit is contained in:
John Ernberg 2016-04-22 13:10:07 +00:00 committed by Denis Kenzior
parent 43f9efc1fd
commit a0a766678c
1 changed files with 2 additions and 4 deletions

View File

@ -980,8 +980,7 @@ void sim_spdi_free(struct sim_spdi *spdi)
if (spdi == NULL)
return;
g_slist_foreach(spdi->operators, (GFunc)g_free, NULL);
g_slist_free(spdi->operators);
g_slist_free_full(spdi->operators, g_free);
g_free(spdi);
}
@ -1088,8 +1087,7 @@ void sim_eons_free(struct sim_eons *eons)
g_free(eons->pnn_list);
g_slist_foreach(eons->opl_list, (GFunc)g_free, NULL);
g_slist_free(eons->opl_list);
g_slist_free_full(eons->opl_list, g_free);
g_free(eons);
}