PtrArray.setFreeFunc

Sets a function for freeing each element when @array is destroyed either via g_ptr_array_unref(), when g_ptr_array_free() is called with @free_segment set to %TRUE or when removing elements.

class PtrArray
void
setFreeFunc

Parameters

elementFreeFunc GDestroyNotify

A function to free elements with destroy @array or %NULL

Meta

Since

2.22