Use Purify to check for memory leaks