Function Macro

GLibslice_free

Declaration [src]

#define g_slice_free (
  type,
  mem
)

Description [src]

A convenience macro to free a block of memory that has been allocated from the slice allocator.

It calls g_slice_free1() using sizeof (type) as the block size. 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 is NULL, this macro does nothing.

Available since:2.10

Parameters

type -
 

The type of the block to free, typically a structure name.

mem -
 

A pointer to the block to free.