This version of Unity is unsupported.

UnsafeUtility.CheckForLeaks

Declaration

public static int CheckForLeaks();

Returns

int The number of leaks found.

Description

Any memory allocated before this call, that hasn't already been freed, is assumed to have leaked. Prints a list of leaks.