Explain the memory management model of your platform and how you prevent memory leaks in asynchronous callbacks.