Gareth Lloyd - Memory Leaks: I Know It’s Here Somewhere!

Gareth Lloyd explains what memory leaks actually are, why they hurt battery life, performance and user experience, and the most common causes in Swift apps such as closure captures, timers and notification observers. He then demos diagnosing and fixing leaks in Xcode using the memory gauge, memory graph, malloc stack logging and the Instruments Leaks tool, including an experiment using Claude to help spot the bugs. Chapters: 0:00 Intro 2:17 What is a memory leak? 3:13 Why it matters 5:39 Common causes of leaks 7:56 Demo: Xcode memory tools 14:24 Demo: Instruments Leaks tool 20:07 Key takeaways 21:11 Q&A 24:24 Outro --- Melbourne CocoaHeads — a community of iOS & macOS developers in Melbourne, Australia. https://www.melbournecocoaheads.com/