It depends. Generally, even when the co-owner dies his ownership rights are transferred to his heir or anyone he names in his will. However, if there was none, then you can sell it after your partner passes away.