Divorce is complicated and all situations are different but this is about the worse case scenario. More than likely they will lose the place because they will each be living on half their income now since he will be paying alimony and child support to the tune of half or more. It is doubtful either can swing the place with a 50% cut in pay. California does not recognize individual income, the family income is what it is and it gets divided based on a number of factors. If the divorce is contested the legal fees can exceed 40k. Marriage is grand, divorce is 40 grand.
Staying with her until the kid gets older and she starts working is the only way to fly, divorcing a stay at home mom will leave him with barely enough to eat on, let alone pay a mortgage.
A place in San Diego purchased in 2006 is toast for a decade, so hanging on for a year or two won’t help, that downpayment is gone even if they stay together.