Once one of the partners in the account dies, whether they're married or not, the account is frozen.
In theory, the surviving partner could withdraw all the funds before informing the bank of the death. But, that's illegal and it's not going to look very good for the survivor if the death is sudden or is ruled as suspicious.