Use g_list_free_full/g_slist_free_full
Merge pull request #410 from LebedevRI/memory

Use g_list_free_full/g_slist_free_full