Memory allocation bug fixes
CFRetain fixes