We are sorry to hear about the passing of your spouse.
As per CRA: The general rule for the deceased RSP
If you are preparing a deceased return- Here is what you need to know.
If you need more information please contact CRA directly.