sliceFree1

Frees a block of memory.

The memory must have been allocated via glib.global.sliceAlloc or glib.global.sliceAlloc0 and the block_size has to match the size specified upon allocation. Note that the exact release behaviour can be changed with the [G_DEBUG=gc-friendly]G_DEBUG environment variable.

If mem_block is null, this function does nothing.

Since GLib 2.76 this always uses the system free_sized() implementation internally.

void
sliceFree1
(
size_t blockSize
,
void* memBlock = null
)

Parameters

blockSize size_t

the size of the block

memBlock void*

a pointer to the block to free