How do I know if I'm leaking memory?

How do I know if I'm leaking memory?


I'm building some of my own widgets, but I'm not yet confident with
all those references and closures. Thus, using and passing them here
and there. Is there a convenient tool or something to tell whether I'm
leaking memory?