Version: 2023.2
public static int CheckForLeaks ();

返回

int The number of leaks found.

描述

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