This version of Unity is unsupported.

UnsafeUtility.ForgiveLeaks

Declaration

public static int ForgiveLeaks();

Returns

int The number of leaks forgiven.

Description

Tells the leak checking system to ignore any memory allocations made up to that point - if they leak, they are forgiven.