ListSG.freeFull

Convenience method, which frees all the memory used by a #GSList, and calls the specified destroy function on every element's data.

@free_func must not modify the list (eg, by removing the freed element from it).

class ListSG
void
freeFull
(
GDestroyNotify freeFunc
)

Parameters

freeFunc GDestroyNotify

the function to be called to free each element's data

Meta

Since

2.28