Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CheckForLeaks()

Gets a list of memory leaks.
Read time 1 minuteLast updated 17 days ago

Definition

public static int CheckForLeaks()

Returns

Type

Description

intThe number of leaks found.

Remarks

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