Fixed iOS 5 support (NSPointerarray is not present there)
Fixed leak