If it's a final return the capital gains do go to the beneficiaries.
If not final, Screen 7. Remove whatever you've got in required or Other Long-term