All financial transactions between two people are part of give and take. You cannot consider each separate. Giving back the debt is his first obligation and she has the right to take back what is hers.
Secondly, my point is, he does not have any right in inheritance of a muslim, whatever she gives him can be a gift and hence she can settle the debt.