ListG.clearList

Clears a pointer to a #GList, freeing it and, optionally, freeing its elements using @destroy.

@list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing.

class ListG
static
void
clearList
(,
GDestroyNotify destroy
)

Parameters

listPtr ListG

a #GList return location

destroy GDestroyNotify

the function to pass to g_list_free_full() or %NULL to not free elements

Meta

Since

2.64