Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FreeTracked

Free memory with leak tracking.
Read time 1 minuteLast updated 19 days ago

Definition

FreeTracked(void*, Allocator)

Free memory with leak tracking.
public static void FreeTracked(void* memory, Allocator allocator)

Parameters

memory

Memory pointer.

allocator

Allocator.

FreeTracked(void*, MemoryLabel)

Free memory with leak tracking, using the specified memory label.
public static void FreeTracked(void* memory, MemoryLabel label)

Parameters

memory

Memory pointer.

The memory label that was used to allocate the memory. The memory label must match the one used during allocation to ensure correct deallocation.