change CC_SAFE_DELETE to CC_SAFE_DELETE_ARRAY