begin_leak_check#
- omni.ui.leak_check.begin_leak_check(self) int#
Snapshot the objects this window owns so leaks can be reported later.
Call this before the window tears itself down (e.g. at the top of a subclass ``destroy()``). The snapshot holds only weak references, so it never keeps anything alive. Returns the number of tracked objects.