Function Macro

GLibslice_free_chain

Declaration [src]

#define g_slice_free_chain (
  type,
  mem_chain,
  next
)

Description [src]

Frees a linked list of memory blocks of structure type type.

The memory blocks must be equal-sized, allocated via g_slice_alloc() or g_slice_alloc0() and linked together by a next pointer (similar to GSList). The name of the next field in type is passed as third argument. Note that the exact release behaviour can be changed with the [G_DEBUG=gc-friendly][G_DEBUG] environment variable, also see [G_SLICE][G_SLICE] for related debugging options.

If mem_chain is NULL, this function does nothing.

Available since:2.10

Parameters

type -
 

The type of the mem_chain blocks.

mem_chain -
 

A pointer to the first block of the chain.

next -
 

The field name of the next pointer in type.