Frees the memory allocated for the
it frees the memory block holding the elements as well. Pass
if you want to free the
GPtrArray wrapper but preserve the
underlying array for use elsewhere. If the reference count of
is greater than one, the
GPtrArray wrapper is preserved but the
array will be set to zero.
If array contents point to dynamically-allocated memory, they should
be freed separately if
TRUE and no
function has been set for
Note that if the array is
NULL terminated and
then this will always return an allocated
NULL terminated buffer.
If pdata is previously
NULL, a new buffer will be allocated.
This function is not thread-safe. If using a
GPtrArray from multiple
threads, use only the atomic
This function is not directly available to language bindings.
Type: An array of
The data is owned by the caller of the function.
TRUEthe actual pointer array is freed as well.