How do you prevent memory leaks in your mobile applications, and what tools do you use to detect them?