if therfe is i cant seem to find the function
If you are on Windows then the task manager does the job good enough for me, I load the program up, take a note of the current memory useage and then run it for 10 minutes, if the memory has gone up a significant amount without any new items being loaded then there is a leak problem
And if on iPhone then it's something like Run->run with performance tool->Object allocations. I think there is also a leak option.
Cheers