ListSG.clearSlist

Clears a pointer to a GSList, freeing it and, optionally, freeing its elements using destroy.

slist_ptr must be a valid pointer. If slist_ptr points to a null GSList, this does nothing.

class ListSG
static
void
clearSlist

Parameters

slistPtr ListSG

a GSList return location

destroy GDestroyNotify

the function to pass to g_slist_free_full() or NULL to not free elements

Meta

Since

2.64