If your think that William CORRIE (senior) in the census that I posted above is the correct father for your William (1821), then .....
he was married to Anne DINWOODIE / DINWIDDIE (be aware - very numerous spellings for this name).
The William CORRIE – Anne DINWIDDIE Marriage was in 1806 in Troqueer.
There are baptisms for 3 children: John (1825 Dunscore), Janet (1828 Dunscore) and Adam (1832 Kirkmahoe)
Death for Ann (DINWIDDIE) CORRIE in 1863 Troqueer , age 77. (mother – THORBURN)