Thanks to Xcode instruments for pointing out these memory leaks.